Problem/Motivation

Similiar to the problem fixed on #3152961: Image support for Paragraphs & Media, Paragraphs has a submodule called "Paragraphs Library" and currently, if I add an image to a paragraph, then promote it to library, the image does not appear on the sitemap.

Steps to reproduce

Enable the Paragraph and Paragraphs Library modules.
Create a paragraph type X and a media field.
Add a paragraph library content with the paragraph type created with a media
Add the paragraph library to a content
Generate the sitemap

Expected: the image should appear on the sitemap entry
Actual: the image does not appear.

Proposed resolution

Since the library adds another level between the entity and the final media, include the LibraryItem type on the recursive logic of /EntityUrlGeneratorBase.php::getEntityImageData

Remaining tasks

Create a patch.
Test it.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

hmendes created an issue. See original summary.

hmendes’s picture

Status: Active » Needs review
walkingdexter’s picture

Status: Needs review » Needs work

@hmendes Instead of a class, you should use an interface.

walkingdexter’s picture

Status: Needs work » Fixed

Merged, thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.