Mercurial > hg > isophonics-drupal-site
view core/themes/classy/templates/field/image.html.twig @ 19:fa3358dc1485 tip
Add ndrum files
author | Chris Cannam |
---|---|
date | Wed, 28 Aug 2019 13:14:47 +0100 |
parents | 4c8ae668cc8c |
children |
line wrap: on
line source
{# /** * @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) }} />