module image title

This commit is contained in:
2023-06-19 14:13:27 +02:00
parent 8df9fc6ecc
commit 8cab24aee5
23 changed files with 266 additions and 344 deletions
@@ -0,0 +1,21 @@
{#
/**
* @file
* Default theme implementation 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()
*
* @ingroup themeable
*/
#}
{% if url %}
{{ link(image, url) }}
{% else %}
{{ image }}
{{attributes}}
{% endif %}