layout-test-1col.html.twig
Same filename in other branches
Template for an example 1 column layout.
File
-
core/
modules/ system/ tests/ modules/ layout_test/ templates/ layout-test-1col.html.twig
View source
- {#
- /**
- * @file
- * Template for an example 1 column layout.
- */
- #}
- <div{{ attributes.addClass('layout-example-1col', 'clearfix') }}>
- {% if in_preview %}
- This is a preview, indeed
- {% endif %}
- <div {{ region_attributes.top.addClass('region-top') }}>
- {{ content.top }}
- </div>
- <div {{ region_attributes.bottom.addClass('region-bottom') }}>
- {{ content.bottom }}
- </div>
- </div>
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.