Files
Popsu-coloque/web/themes/contrib/mediteran/templates/field/responsive-image-formatter.html.twig
T
2020-06-08 23:57:36 +02:00

18 lines
401 B
Twig

{#
/**
* @file
* Theme override 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()
*/
#}
{% if url %}
<a href="{{ url }}">{{ responsive_image }}</a>
{% else %}
{{ responsive_image }}
{% endif %}