annotate core/themes/classy/templates/field/field--node--title.html.twig @ 19:fa3358dc1485 tip

Add ndrum files
author Chris Cannam
date Wed, 28 Aug 2019 13:14:47 +0100
parents 4c8ae668cc8c
children
rev   line source
Chris@0 1 {#
Chris@0 2 /**
Chris@0 3 * @file
Chris@0 4 * Theme override for the node title field.
Chris@0 5 *
Chris@0 6 * This is an override of field.html.twig for the node title field. See that
Chris@0 7 * template for documentation about its details and overrides.
Chris@0 8 *
Chris@0 9 * Available variables:
Chris@0 10 * - attributes: HTML attributes for the containing span element.
Chris@0 11 * - items: List of all the field items. Each item contains:
Chris@0 12 * - attributes: List of HTML attributes for each item.
Chris@0 13 * - content: The field item content.
Chris@0 14 * - entity_type: The entity type to which the field belongs.
Chris@0 15 * - field_name: The name of the field.
Chris@0 16 * - field_type: The type of the field.
Chris@0 17 * - label_display: The display settings for the label.
Chris@0 18 *
Chris@0 19 * @see field.html.twig
Chris@0 20 */
Chris@0 21 #}
Chris@0 22 {%
Chris@0 23 set classes = [
Chris@0 24 'field',
Chris@0 25 'field--name-' ~ field_name|clean_class,
Chris@0 26 'field--type-' ~ field_type|clean_class,
Chris@0 27 'field--label-' ~ label_display,
Chris@0 28 ]
Chris@0 29 %}
Chris@0 30 <span{{ attributes.addClass(classes) }}>
Chris@0 31 {%- for item in items -%}
Chris@0 32 {{ item.content }}
Chris@0 33 {%- endfor -%}
Chris@0 34 </span>