iu-8.x-1.x-dev/templates/field/image-style.html.twig

templates/field/image-style.html.twig
{#
/**
 * @file
 * Theme override for an image using a specific image style.
 *
 * Available variables:
 * - attributes: HTML attributes for the image, including the following:
 *   - src: Full URL or relative path to the image file.
 *   - class: One or more classes to be applied to the image.
 *   - width: The width of the image (if known).
 *   - height: The height of the image (if known).
 *   - title: The title of the image.
 *   - alt: The alternative text for the image.
 *
 * @see template_preprocess_image_style()
 */
#}
{{ attach_library('iu/image-styles') }}
{% set class = 'image-style-' ~ style_name %}
{{ image|merge({'#attributes': {'class': [class|clean_class]}}) }}

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

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