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:

  • attributes: Attributes to be placed on the wrapping element.
  • content: All content items, each content item is keyed to one region of the layout. 'content' contains the following sections:

    • first: Content in the first column.
    • second: Content in the second column.

File

drupal/core/modules/layout/layouts/static/twocol/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. * - attributes: Attributes to be placed on the wrapping element.
  11. * - content: All content items, each content item is keyed to one region of the
  12. * layout. 'content' contains the following sections:
  13. * - first: Content in the first column.
  14. * - second: Content in the second column.
  15. *
  16. * @ingroup themeable
  17. */
  18. #}
  19. <div class="layout-display layout-two-col clearfix {{ attributes.class }}"{{ attributes }}>
  20. <div class="layout-region layout-col-first">
  21. {{ content.first }}
  22. </div>
  23. <div class="layout-region layout-col-second">
  24. {{ content.second }}
  25. </div>
  26. </div>

Related topics