two-col.html.twig

Template for a 2 column layout.

This template provides a two column display layout, with each column equal in width.

Available variables:

  • content: All content items, each content item is keyed to one region of the layout. 'content' contains the following sections:

    • left: Content in the left column.
    • right: Content in the right column.

File

drupal/core/modules/layout/tests/themes/layout_test_theme/layouts/static/two-col/two-col.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Template for a 2 column layout.
  5. *
  6. * This template provides a two column display layout, with each column equal in
  7. * width.
  8. *
  9. * Available variables:
  10. * - content: All content items, each content item is keyed to one region of the
  11. * layout. 'content' contains the following sections:
  12. * - left: Content in the left column.
  13. * - right: Content in the right column.
  14. *
  15. * @ingroup themeable
  16. */
  17. #}
  18. <div class="layout-display layout-two-col clearfix">
  19. <div class="layout-region layout-col-left">
  20. <div class="inside">{{ content.left }}</div>
  21. </div>
  22. <div class="layout-region layout-col-right">
  23. <div class="inside">{{ content.right }}</div>
  24. </div>
  25. </div>

Related topics