region.html.twig
Default theme implementation 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
\Drupal\Core\Theme\ThemePreprocess::preprocessRegion()
File
- 
              core/modules/ system/ templates/ region.html.twig 
View source
- {#
- /**
-  * @file
-  * Default theme implementation 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 \Drupal\Core\Theme\ThemePreprocess::preprocessRegion()
-  *
-  * @ingroup themeable
-  */
- #}
- {% if content %}
-   <div{{ attributes }}>
-     {{ content }}
-   </div>
- {% endif %}
Related topics
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
