two-col.html.twig in Layout 8.2
Template for a 2 column layout.
This template provides a two column display layout, with each column equal in width.
Available variables:
- attributes: Attributes to be placed on the wrapping element.
- content: All content items, each content item is keyed to one region of the
layout. 'content' contains the following sections:
- first: Content in the first column.
- second: Content in the second column.
File
layouts/static/twocol/two-col.html.twigView source
- {#
- /**
- * @file
- * Template for a 2 column layout.
- *
- * This template provides a two column display layout, with each column equal in
- * width.
- *
- * Available variables:
- * - attributes: Attributes to be placed on the wrapping element.
- * - content: All content items, each content item is keyed to one region of the
- * layout. 'content' contains the following sections:
- * - first: Content in the first column.
- * - second: Content in the second column.
- *
- * @ingroup themeable
- */
- #}
- <div class="layout-display layout-two-col clearfix {{ attributes.class }}"{{ attributes }}>
- <div class="layout-region layout-col-first">
- {{ content.first }}
- </div>
-
- <div class="layout-region layout-col-second">
- {{ content.second }}
- </div>
- </div>