layout-test-1col.html.twig

Same filename in other branches
  1. 8.9.x core/modules/system/tests/modules/layout_test/templates/layout-test-1col.html.twig
  2. 10 core/modules/system/tests/modules/layout_test/templates/layout-test-1col.html.twig
  3. 11.x core/modules/system/tests/modules/layout_test/templates/layout-test-1col.html.twig

Template for an example 1 column layout.

File

core/modules/system/tests/modules/layout_test/templates/layout-test-1col.html.twig

View source
  1. {#
  2. /**
  3. * @file
  4. * Template for an example 1 column layout.
  5. */
  6. #}
  7. <div{{ attributes.addClass('layout-example-1col', 'clearfix') }}>
  8. {% if in_preview %}
  9. This is a preview, indeed
  10. {% endif %}
  11. <div {{ region_attributes.top.addClass('region-top') }}>
  12. {{ content.top }}
  13. </div>
  14. <div {{ region_attributes.bottom.addClass('region-bottom') }}>
  15. {{ content.bottom }}
  16. </div>
  17. </div>

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.