Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I think selecting image style for image, if we know its uri, should be possible directly in template instead of being hardcoded in render array.
{{ uri|image_style('thumbnail') }}
Comments
Comment #1
Anonymous (not verified) CreditAttribution: Anonymous commentedivanjaros created an issue. See original summary.
Comment #2
star-szrThanks, I think this is a duplicate of #2361299: Twig image style filter/function.