Mercurial > hg > isophonics-drupal-site
view core/modules/responsive_image/templates/responsive-image-formatter.html.twig @ 9:1fc0ff908d1f
Add another data file
author | Chris Cannam |
---|---|
date | Mon, 05 Feb 2018 12:34:32 +0000 |
parents | 4c8ae668cc8c |
children |
line wrap: on
line source
{# /** * @file * Default theme implementation to display a formatted responsive image field. * * Available variables: * - responsive_image: A collection of responsive image data. * - url: An optional URL the image can be linked to. * * @see template_preprocess_responsive_image_formatter() * * @ingroup themeable */ #} {% if url %} <a href="{{ url }}">{{ responsive_image }}</a> {% else %} {{ responsive_image }} {% endif %}