{# /** * @file * Theme override for a image fields on nodes, always a featured image. * * Available variables: * - attributes: HTML attributes for the containing element. * - title_attributes, label, label_display: Not used; we force label_hidden. * - multiple: TRUE if a field can contain multiple items. * - items: List of all the field items. Each item contains: * - attributes: List of HTML attributes for each item. * - content: The field item's content. * - entity_type: The entity type to which the field belongs. * - field_name: The name of the field. * - field_type: The type of the field. * * @see template_preprocess_field() */ #} {# Child templates can specify classes to be added to items. #} {% set item_classes = item_classes ?? ['nadahuh'] %} {# Child templates can specify whether items should be wrapped. #} {% set use_item_wrapper = use_item_wrapper is defined ? use_item_wrapper : false %} {% macro render_item(item, item_classes, use_item_wrapper) %} {% set item = item|merge({ 'attributes': item.attributes.addClass(item_classes) }) %} {% if use_item_wrapper %}