layout--onecol.html.twig 516 B

12345678910111213141516171819202122232425
  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--onecol',
  17. ]
  18. %}
  19. {% if content %}
  20. <div{{ attributes.addClass(classes) }}>
  21. <div {{ region_attributes.content.addClass('layout__region', 'layout__region--content') }}>
  22. {{ content.content }}
  23. </div>
  24. </div>
  25. {% endif %}