region--header.html.twig
Same filename in this branch
Same filename in other branches
- 9 core/themes/olivero/templates/layout/region--header.html.twig
- 9 core/themes/bartik/templates/region--header.html.twig
- 8.9.x core/themes/bartik/templates/region--header.html.twig
- 11.x core/profiles/demo_umami/themes/umami/templates/layout/region--header.html.twig
- 11.x core/themes/olivero/templates/layout/region--header.html.twig
Theme override to display a region.
Available variables:
- content: The content for this region, typically blocks.
- attributes: HTML attributes for the region <div>.
- region: The name of the region variable as defined in the theme's .info.yml file.
See also
File
-
core/
profiles/ demo_umami/ themes/ umami/ templates/ layout/ region--header.html.twig
View source
- {#
- /**
- * @file
- * Theme override to display a region.
- *
- * Available variables:
- * - content: The content for this region, typically blocks.
- * - attributes: HTML attributes for the region <div>.
- * - region: The name of the region variable as defined in the theme's
- * .info.yml file.
- *
- * @see template_preprocess_region()
- */
- #}
- {%
- set classes = [
- 'region',
- 'region-' ~ region|clean_class,
- ]
- %}
-
- {% embed "umami:header" with {
- attributes,
- } %}
- {% block logo %}
- {{ elements.umami_branding }}
- {% endblock %}
- {% block dropdown %}
- {{ elements.umami_main_menu }}
- {% endblock %}
- {% endembed %}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.