layout-test-2col.html.twig

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

Template for an example 2 column layout.

File

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

View source
  1. {#
  2. /**
  3. * @file
  4. * Template for an example 2 column layout.
  5. */
  6. #}
  7. <div{{ attributes.addClass('layout-example-2col', 'clearfix') }}>
  8. <div {{ region_attributes.left.addClass('region-left') }}>
  9. {{ content.left }}
  10. </div>
  11. <div {{ region_attributes.right.addClass('region-right') }}>
  12. {{ content.right }}
  13. </div>
  14. </div>

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