one-col.html.twig

Template for a 1 column layout.

This template provides a simple one column display layout.

Avaiable 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 section:

    • content: Content in the content column.

File

drupal/core/modules/layout/layouts/static/one-col/one-col.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Template for a 1 column layout.
  5. *
  6. * This template provides a simple one column display layout.
  7. *
  8. * Avaiable variables:
  9. * - attributes: Attributes to be placed on the wrapping element.
  10. * - content: All content items, each content item is keyed to one region of the
  11. * layout. 'content' contains the following section:
  12. * - content: Content in the content column.
  13. *
  14. * @ingroup themeable
  15. */
  16. #}
  17. <div class="layout-display layout-one-col {{ attributes.class }}"{{ attributes }}>
  18. <div class="layout-region">
  19. {{ content.content }}
  20. </div>
  21. </div>

Related topics