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.
Issue fork simple_sitemap-3480057
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
Comment #3
hmendes commentedComment #4
walkingdexter commented@hmendes Instead of a class, you should use an interface.
Comment #6
walkingdexter commentedMerged, thanks!