You are here

layout--base--twocols.html.twig in Layout Builder Base 8

Default theme implementation to display a one-column layout.

Available variables:

  • content: The content for this layout.
  • attributes: HTML attributes for the layout <div>.

File

modules/layout_builder_base_library/layouts/twocols/layout--base--twocols.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation to display a one-column layout.
  5. *
  6. * Available variables:
  7. * - content: The content for this layout.
  8. * - attributes: HTML attributes for the layout <div>.
  9. *
  10. * @ingroup themeable
  11. */
  12. #}
  13. {%
  14. set classes = [
  15. 'layout',
  16. 'layout--twocol',
  17. ]
  18. %}
  19. {% if content %}
  20. <div{{attributes.addClass(classes)}}>
  21. <div class="layout-content">
  22. <div {{ region_attributes.first.addClass('layout__region', 'layout__region--first') }}>
  23. {{ content.first }}
  24. </div>
  25. <div {{ region_attributes.second.addClass('layout__region', 'layout__region--second') }}>
  26. {{ content.second }}
  27. </div>
  28. </div>
  29. </div>
  30. {% endif %}