You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
924 B
33 lines
924 B
6 years ago
|
{#
|
||
|
/**
|
||
|
* @file
|
||
|
* Theme override for the node title field.
|
||
|
*
|
||
|
* This is an override of field.html.twig for the node title field. See that
|
||
|
* template for documentation about its details and overrides.
|
||
|
*
|
||
|
* Available variables:
|
||
|
* - attributes: HTML attributes for the containing span element.
|
||
|
* - items: List of all the field items. Each item contains:
|
||
|
* - attributes: List of HTML attributes for each item.
|
||
|
* - content: The field item 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.
|
||
|
* - label_display: The display settings for the label.
|
||
|
*
|
||
|
* @see field.html.twig
|
||
|
*/
|
||
|
#}
|
||
|
{%
|
||
|
set classes = [
|
||
|
'field',
|
||
|
'field--name-' ~ field_name|clean_class,
|
||
|
'field--type-' ~ field_type|clean_class,
|
||
|
'field--label-' ~ label_display,
|
||
|
]
|
||
|
%}
|
||
|
<h1 {{ attributes.addClass(classes) }}>
|
||
|
{{ item.content }}
|
||
|
</h1>
|