Mercurial > hg > isophonics-drupal-site
view core/modules/layout_discovery/templates/layout.html.twig @ 15:e200cb7efeb3
Update Drupal core to 8.5.3 via Composer
author | Chris Cannam |
---|---|
date | Thu, 26 Apr 2018 11:26:54 +0100 |
parents | 4c8ae668cc8c |
children |
line wrap: on
line source
{# /** * @file * Template for a generic layout. */ #} {% set classes = [ 'layout', 'layout--' ~ layout.id|clean_class, ] %} {% if content %} <div{{ attributes.addClass(classes) }}> {% for region in layout.getRegionNames %} {% if content[region] %} <div {{ region_attributes[region].addClass('layout__region', 'layout__region--' ~ region|clean_class) }}> {{ content[region] }} </div> {% endif %} {% endfor %} </div> {% endif %}