one-col.html.twig

Template for a one column layout.

This template provides a very simple "one column" display layout.

Avaiable variables:

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

    • middle: The only region in the layout.

File

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

Related topics