layout--onecol.html.twig in Drupal 10
Same filename in this branch
Same filename and directory in other branches
Theme override to display a one-column layout.
Available variables:
- content: The content for this layout.
- attributes: HTML attributes for the layout <div>.
File
core/themes/stable9/layouts/layout_discovery/onecol/layout--onecol.html.twigView source
- {#
- /**
- * @file
- * Theme override to display a one-column layout.
- *
- * Available variables:
- * - content: The content for this layout.
- * - attributes: HTML attributes for the layout <div>.
- */
- #}
- {%
- set classes = [
- 'layout',
- 'layout--onecol',
- ]
- %}
- {% if content %}
- <div{{ attributes.addClass(classes) }}>
- <div {{ region_attributes.content.addClass('layout__region', 'layout__region--content') }}>
- {{ content.content }}
- </div>
- </div>
- {% endif %}