1KA_F2F/frontend/drupal9/web/modules/contrib/ds/templates/ds-field-reset.html.twig

24 lines
616 B
Twig
Raw Normal View History

2021-07-27 14:46:32 +02:00
{#
/**
* @file
* Template to reset all HTML for the field.
*
* Available variables:
* - element: The field element.
* - label: The label of the field.
* - show_colon: TRUE if colon should be displayed after label.
* - items: List of all the field items. Each item contains:
* - attributes: List of HTML attributes for each item.
* - content: The field item's content.
*/
#}
{% if not label_hidden %}
<div class="field-label-{{ element['#label_display']|clean_class }}">
{{- label }}{% if show_colon %}:{% endif -%}
</div>
{% endif %}
{% for item in items %}
{{ item.content }}
{% endfor %}