layout--base--fourcols.html.twig in Layout Builder Base 8
Default theme implementation to display a one-column layout.
Available variables:
- content: The content for this layout.
- attributes: HTML attributes for the layout <div>.
File
modules/layout_builder_base_library/layouts/fourcols/layout--base--fourcols.html.twigView source
- {#
- /**
- * @file
- * Default theme implementation to display a one-column layout.
- *
- * Available variables:
- * - content: The content for this layout.
- * - attributes: HTML attributes for the layout <div>.
- *
- * @ingroup themeable
- */
- #}
- {%
- set classes = [
- 'layout',
- 'layout--fourcol',
- ]
- %}
- {% if content %}
- <div{{attributes.addClass(classes)}}>
- <div class="layout-content">
- <div {{ region_attributes.first.addClass('layout__region', 'layout__region--first') }}>
- {{ content.first }}
- </div>
- <div {{ region_attributes.second.addClass('layout__region', 'layout__region--second') }}>
- {{ content.second }}
- </div>
- <div {{ region_attributes.third.addClass('layout__region', 'layout__region--third') }}>
- {{ content.third }}
- </div>
- <div {{ region_attributes.fourth.addClass('layout__region', 'layout__region--fourth') }}>
- {{ content.fourth }}
- </div>
- </div>
- </div>
- {% endif %}
-