Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / themes / classy / templates / field / field--node--title.html.twig
1 {#
2 /**
3  * @file
4  * Theme override for the node title field.
5  *
6  * This is an override of field.html.twig for the node title field. See that
7  * template for documentation about its details and overrides.
8  *
9  * Available variables:
10  * - attributes: HTML attributes for the containing span element.
11  * - items: List of all the field items. Each item contains:
12  *   - attributes: List of HTML attributes for each item.
13  *   - content: The field item content.
14  * - entity_type: The entity type to which the field belongs.
15  * - field_name: The name of the field.
16  * - field_type: The type of the field.
17  * - label_display: The display settings for the label.
18  *
19  * @see field.html.twig
20  */
21 #}
22 {%
23   set classes = [
24     'field',
25     'field--name-' ~ field_name|clean_class,
26     'field--type-' ~ field_type|clean_class,
27     'field--label-' ~ label_display,
28   ]
29 %}
30 <span{{ attributes.addClass(classes) }}>
31   {%- for item in items -%}
32     {{ item.content }}
33   {%- endfor -%}
34 </span>