presto-8.x-2.2/themes/presto_theme/templates/system/image.html.twig
themes/presto_theme/templates/system/image.html.twig
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | {# /** * @file * Theme override of an image. * * Available variables: * - attributes: HTML attributes for the img tag. * - style_name: (optional) The name of the image style applied. * * @see template_preprocess_image() */ #} {% set classes = [ style_name ? 'image-style-' ~ style_name|clean_class, ] %} <img{{ attributes.addClass(classes) }} /> |