Further changes for the Use cases on the live site.
[yaffs-website] / web / core / modules / responsive_image / templates / responsive-image-formatter.html.twig
1 {#
2 /**
3  * @file
4  * Default theme implementation to display a formatted responsive image field.
5  *
6  * Available variables:
7  * - responsive_image: A collection of responsive image data.
8  * - url: An optional URL the image can be linked to.
9  *
10  * @see template_preprocess_responsive_image_formatter()
11  *
12  * @ingroup themeable
13  */
14 #}
15 {% if url %}
16   <a href="{{ url }}">{{ responsive_image }}</a>
17 {% else %}
18   {{ responsive_image }}
19 {% endif %}