2021-04-07 11:50:47 +02:00
|
|
|
{#
|
|
|
|
/**
|
|
|
|
* @file
|
|
|
|
* Theme override to display a formatted image field.
|
|
|
|
*
|
|
|
|
* Available variables:
|
|
|
|
* - image: A collection of image data.
|
|
|
|
* - image_style: An optional image style.
|
|
|
|
* - url: An optional URL the image can be linked to.
|
|
|
|
*
|
|
|
|
* @see template_preprocess_image_formatter()
|
|
|
|
*/
|
|
|
|
#}
|
|
|
|
{% if url %}
|
2021-06-10 17:42:55 +02:00
|
|
|
{# {{ link(image, url, { '@click.prevent.stop':'onClickLink' }) }} #}
|
|
|
|
<!-- attributes are added from vue_link_formatter custom module -->
|
2021-04-07 11:50:47 +02:00
|
|
|
{{ link(image, url) }}
|
|
|
|
{% else %}
|
|
|
|
{{ image }}
|
|
|
|
{% endif %}
|