layout--base--customizable.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/customizable/layout--base--customizable.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--customizable',
- ]
- %}
- {% if content %}
- <div{{attributes.addClass(classes)}}>
- <div {{ region_attributes.content.addClass('layout-content', 'layout__region', 'layout__region--content') }}>
- {{ content.content }}
- </div>
- </div>
- {% endif %}