You are here

bs-1col.html.twig in Bootstrap Layouts 8.4

Same filename and directory in other branches
  1. 8.5 templates/3.0.0/bs-1col.html.twig

Bootstrap Layouts: "1 Column" template.

Available layout variables:

  • wrapper: Wrapper element for the layout container.
  • attributes: Wrapper attributes for the layout container.

Available region variables:

  • main

Each region variable contains the following properties:

  • wrapper: The HTML element to use to wrap this region.
  • attributes: The HTML attributes to use on the wrapper for this region.
  • content: The content to go inside the wrapper for this region.

File

templates/3.0.0/bs-1col.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Bootstrap Layouts: "1 Column" template.
  5. *
  6. * Available layout variables:
  7. * - wrapper: Wrapper element for the layout container.
  8. * - attributes: Wrapper attributes for the layout container.
  9. *
  10. * Available region variables:
  11. * - main
  12. *
  13. * Each region variable contains the following properties:
  14. * - wrapper: The HTML element to use to wrap this region.
  15. * - attributes: The HTML attributes to use on the wrapper for this region.
  16. * - content: The content to go inside the wrapper for this region.
  17. */
  18. #}
  19. <{{ wrapper }}{{ attributes }}>
  20. {{ title_suffix.contextual_links }}
  21. <{{ main.wrapper }}{{ main.attributes }}>
  22. {{ main.content }}
  23. </{{ main.wrapper }}>
  24. </{{ wrapper }}>