heading.html.twig in Heading field 8
Default theme implementation to present a Heading field.
Available variables:
- size : The heading size (h1 - h6).
- text : The text for within the heading.
See also
template_preprocess_heading()
2 theme calls to heading.html.twig
- HeadingFormatter::viewElements in src/
Plugin/ Field/ FieldFormatter/ HeadingFormatter.php - Builds a renderable array for a field value.
- TextFormatter::viewElements in src/
Plugin/ Field/ FieldFormatter/ TextFormatter.php - Builds a renderable array for a field value.
File
templates/heading.html.twigView source
- {#
- /**
- * @file
- * Default theme implementation to present a Heading field.
- *
- * Available variables:
- * - size : The heading size (h1 - h6).
- * - text : The text for within the heading.
- *
- * @see template_preprocess_heading()
- *
- * @ingroup themeable
- */
- #}
- <{{ size }}>{{ text }}</{{ size }}>