region.html.twig
Same filename in this branch
- 11.x core/profiles/demo_umami/themes/umami/templates/classy/layout/region.html.twig
- 11.x core/themes/olivero/templates/layout/region.html.twig
- 11.x core/themes/claro/templates/classy/layout/region.html.twig
- 11.x core/themes/starterkit_theme/templates/layout/region.html.twig
- 11.x core/modules/system/templates/region.html.twig
Same filename in other branches
- 9 core/profiles/demo_umami/themes/umami/templates/classy/layout/region.html.twig
- 9 core/themes/olivero/templates/layout/region.html.twig
- 9 core/themes/stable9/templates/layout/region.html.twig
- 9 core/themes/seven/templates/classy/layout/region.html.twig
- 9 core/themes/claro/templates/classy/layout/region.html.twig
- 9 core/themes/bartik/templates/classy/layout/region.html.twig
- 9 core/themes/stable/templates/layout/region.html.twig
- 9 core/themes/starterkit_theme/templates/layout/region.html.twig
- 9 core/themes/classy/templates/layout/region.html.twig
- 9 core/modules/system/templates/region.html.twig
- 8.9.x core/profiles/demo_umami/themes/umami/templates/classy/layout/region.html.twig
- 8.9.x core/themes/seven/templates/classy/layout/region.html.twig
- 8.9.x core/themes/claro/templates/classy/layout/region.html.twig
- 8.9.x core/themes/bartik/templates/classy/layout/region.html.twig
- 8.9.x core/themes/stable/templates/layout/region.html.twig
- 8.9.x core/themes/classy/templates/layout/region.html.twig
- 8.9.x core/modules/system/templates/region.html.twig
- 10 core/profiles/demo_umami/themes/umami/templates/classy/layout/region.html.twig
- 10 core/themes/olivero/templates/layout/region.html.twig
- 10 core/themes/stable9/templates/layout/region.html.twig
- 10 core/themes/claro/templates/classy/layout/region.html.twig
- 10 core/themes/starterkit_theme/templates/layout/region.html.twig
- 10 core/modules/system/templates/region.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/
themes/ stable9/ templates/ layout/ region.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()
- */
- #}
- {% if content %}
- <div{{ attributes }}>
- {{ content }}
- </div>
- {% endif %}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.