Upgraded drupal core with security updates
[yaffs-website] / web / core / modules / image / templates / image-formatter.html.twig
1 {#
2 /**
3  * @file
4  * Default theme implementation to display a formatted image field.
5  *
6  * Available variables:
7  * - image: A collection of image data.
8  * - image_style: An optional image style.
9  * - url: An optional URL the image can be linked to.
10  *
11  * @see template_preprocess_image_formatter()
12  *
13  * @ingroup themeable
14  */
15 #}
16 {% if url %}
17   <a href="{{ url }}">{{ image }}</a>
18 {% else %}
19   {{ image }}
20 {% endif %}