Security update for Core, with self-updated composer
[yaffs-website] / web / core / modules / layout_discovery / layouts / twocol / layout--twocol.html.twig
1 {#
2 /**
3  * @file
4  * Default theme implementation to display a two-column layout.
5  *
6  * Available variables:
7  * - content: The content for this layout.
8  * - attributes: HTML attributes for the layout <div>.
9  *
10  * @ingroup themeable
11  */
12 #}
13 {%
14   set classes = [
15     'layout',
16     'layout--twocol',
17   ]
18 %}
19 {% if content %}
20   <div{{ attributes.addClass(classes) }}>
21     {% if content.top %}
22       <div {{ region_attributes.top.addClass('layout__region', 'layout__region--top') }}>
23         {{ content.top }}
24       </div>
25     {% endif %}
26
27     {% if content.first %}
28       <div {{ region_attributes.first.addClass('layout__region', 'layout__region--first') }}>
29         {{ content.first }}
30       </div>
31     {% endif %}
32
33     {% if content.second %}
34       <div {{ region_attributes.second.addClass('layout__region', 'layout__region--second') }}>
35         {{ content.second }}
36       </div>
37     {% endif %}
38
39     {% if content.bottom %}
40       <div {{ region_attributes.bottom.addClass('layout__region', 'layout__region--bottom') }}>
41         {{ content.bottom }}
42       </div>
43     {% endif %}
44   </div>
45 {% endif %}