materio-d9/web/themes/custom/materiotheme/templates/field/image--card-small-home.html...

21 lines
475 B
Twig
Raw Normal View History

{#
/**
* @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,
]
%}
{# {% set attributes['data-src'] = attributes['src'] %}
{% set attributes['src'] = '#' %} #}
<img{{ attributes.addClass(classes).removeAttribute('title') }} />