materio-d9/web/themes/custom/materiotheme/templates/layout/region.html.twig

26 lines
531 B
Twig
Raw Permalink Normal View History

2019-03-25 18:27:56 +01:00
{#
/**
* @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,
]
%}
{% if content %}
2019-03-27 19:03:32 +01:00
<!-- <div{{ attributes.addClass(classes) }}> -->
2019-03-25 18:27:56 +01:00
{{ content }}
2019-03-27 19:03:32 +01:00
<!-- </div> -->
2019-03-25 18:27:56 +01:00
{% endif %}