- Status changed to Closed: works as designed
7 months ago 4:32pm 22 May 2024 - 🇪🇨Ecuador jwilson3
It is not common to have third and fourth level entity references all immediately loaded for rendering in Twig.
This functionality can best be achieved using the
drupal_entity
function provided by the Twig Tweak → module, which is one of the primary reasons that module exists.{% set file_url = paragraph.field_image_text_content_ref.entity.field_svg_image | file_url %} Inline SVG: {{ source(svg_url) }} IMG Tag:<img src="{{ svg_url }}" />
Closing this as works as designed.