In Twig I am unable to retrieve the file source for each responsive image style on a ImageItem. How should I be getting this information?

  • An alternative would be to be able to get the responsive image id – Mokugo Jun 21 '16 at 14:50

-You can use a theme hook to wire in the responsive image sources (yourtheme.theme)

-You can set your content / (or custom entity) "manage display" / the image field: set responsive display. So it will send to the dom all of the url's when rendering the item.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.