camaleon-8.x-1.x-dev/templates/layout/region.html.twig
templates/layout/region.html.twig
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | {# /** * @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 %} <div{{ attributes.addClass(classes) }}> {{ content }} </div> {% endif %} |