at_theme-1.4.1/at_core/templates/field/image-formatter.html.twig

at_core/templates/field/image-formatter.html.twig
{#
/**
 * @file
 * Theme override to display a formatted image field.
 *
 * Available variables:
 * - image: A collection of image data.
 * - image_style: An optional image style.
 * - path: An optional array containing the link 'path' and link 'options'.
 * - url: An optional URL the image can be linked to.
 *
 * @see template_preprocess_image_formatter()
 */
#}
{%- if url -%}
  <a href="{{ url }}">{{- image -}}</a>
{%- else -%}
  {{- image -}}
{%- endif -%}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc