entity-page-title.html.twig in Drupal 10
Theme override for entity page title.
This output from this template is nested within the page-title template as the title variable. This allows a further refinement of the page title specific to an entity.
This template is only used if the additional entity type property 'enable_page_title_template' is set to TRUE.
Available variables:
- attributes: HTML attributes for the containing span element.
- title: Entity label.
- entity: Entity having a label field.
- view_mode: View mode; for example, "teaser" or "full".
1 theme call to entity-page-title.html.twig
- EntityViewController::buildTitle in core/
lib/ Drupal/ Core/ Entity/ Controller/ EntityViewController.php - Pre-render callback to build the page title.
File
core/themes/stable/templates/field/entity-page-title.html.twigView source
- {#
- /**
- * @file
- * Theme override for entity page title.
- *
- * This output from this template is nested within the page-title template as
- * the title variable. This allows a further refinement of the page title
- * specific to an entity.
- *
- * This template is only used if the additional entity type property
- * 'enable_page_title_template' is set to TRUE.
- *
- * Available variables:
- * - attributes: HTML attributes for the containing span element.
- * - title: Entity label.
- * - entity: Entity having a label field.
- * - view_mode: View mode; for example, "teaser" or "full".
- */
- #}
- <span{{ attributes }}>
- {{ title }}
- </span>