Allow caption tokens paragraph access if there is a parent paragraph

Created on 5 March 2025, about 1 month ago

https://www.drupal.org/project/glightbox/issues/3487478 📌 Allow caption tokens from parent (paragraph entity) Active introduced access to a parent paragraph. But that blocks access to the direct paragraph entity if there is one.

With this change we only access a parent paragraph if the current entity is not a paragraph itself.
This allows caption tokens entity paragraph access even if there is a parent paragraph.

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇩🇪Germany zany

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