adaptivetheme-8.x-3.x-dev/at_core/templates/layout/region.html.twig
at_core/templates/layout/region.html.twig
{#
/**
* @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 = [
'l-r',
'region',
region_row ? 'pr-' ~ region_row|clean_class ~ '__' ~ region|clean_class : region|clean_class
]
-%}
{%- if content -%}
<div {{ attributes.addClass(classes) }} id="rid-{{ region|clean_id }}">{{- content -}}</div>
{%- endif -%}
