layout--threecol-section.html.twig

Same filename in this branch
  1. 8.9.x core/themes/stable/layouts/threecol_section/layout--threecol-section.html.twig
Same filename in other branches
  1. 9 core/themes/stable9/layouts/layout_builder/threecol_section/layout--threecol-section.html.twig
  2. 9 core/themes/stable/layouts/threecol_section/layout--threecol-section.html.twig
  3. 9 core/modules/layout_builder/layouts/threecol_section/layout--threecol-section.html.twig
  4. 10 core/themes/stable9/layouts/layout_builder/threecol_section/layout--threecol-section.html.twig
  5. 10 core/modules/layout_builder/layouts/threecol_section/layout--threecol-section.html.twig
  6. 11.x core/themes/stable9/layouts/layout_builder/threecol_section/layout--threecol-section.html.twig
  7. 11.x core/modules/layout_builder/layouts/threecol_section/layout--threecol-section.html.twig

Default theme implementation for a three-column layout.

Available variables:

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

File

core/modules/layout_builder/layouts/threecol_section/layout--threecol-section.html.twig

View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation for a three-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. {% if content %}
  14. <div{{ attributes.addClass(classes) }}>
  15. {% if content.first %}
  16. <div {{ region_attributes.first.addClass('layout__region', 'layout__region--first') }}>
  17. {{ content.first }}
  18. </div>
  19. {% endif %}
  20. {% if content.second %}
  21. <div {{ region_attributes.second.addClass('layout__region', 'layout__region--second') }}>
  22. {{ content.second }}
  23. </div>
  24. {% endif %}
  25. {% if content.third %}
  26. <div {{ region_attributes.third.addClass('layout__region', 'layout__region--third') }}>
  27. {{ content.third }}
  28. </div>
  29. {% endif %}
  30. </div>
  31. {% endif %}

Related topics


Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.