image--card-small-home.html.twig 475 B

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