Image support for Paragraph Library

Created on 11 October 2024, about 1 month ago

Problem/Motivation

Similiar to the problem fixed on Image support for Paragraphs & Media Fixed , 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.

Feature request
Status

Active

Version

4.0

Component

Code

Created by

🇧🇷Brazil hmendes

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024