region.html.twig in Zircon Profile 8
Same filename in this branch
Same filename and directory in other branches
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
File
core/modules/system/templates/region.html.twigView 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 template_preprocess_region()
- *
- * @ingroup themeable
- */
- #}
- {% if content %}
- <div{{ attributes }}>
- {{ content }}
- </div>
- {% endif %}