You are here

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".

File

core/themes/stable9/templates/field/entity-page-title.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Theme override for entity page title.
  5. *
  6. * This output from this template is nested within the page-title template as
  7. * the title variable. This allows a further refinement of the page title
  8. * specific to an entity.
  9. *
  10. * This template is only used if the additional entity type property
  11. * 'enable_page_title_template' is set to TRUE.
  12. *
  13. * Available variables:
  14. * - attributes: HTML attributes for the containing span element.
  15. * - title: Entity label.
  16. * - entity: Entity having a label field.
  17. * - view_mode: View mode; for example, "teaser" or "full".
  18. */
  19. #}
  20. <span{{ attributes }}>
  21. {{ title }}
  22. </span>