You are here

layout--threecol-section.html.twig in Drupal 10

Theme override for a three-column layout.

Available variables:

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

File

core/themes/stable/layouts/threecol_section/layout--threecol-section.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Theme override 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. #}
  11. {% if content %}
  12. <div{{ attributes.addClass(classes) }}>
  13. {% if content.first %}
  14. <div {{ region_attributes.first.addClass('layout__region', 'layout__region--first') }}>
  15. {{ content.first }}
  16. </div>
  17. {% endif %}
  18. {% if content.second %}
  19. <div {{ region_attributes.second.addClass('layout__region', 'layout__region--second') }}>
  20. {{ content.second }}
  21. </div>
  22. {% endif %}
  23. {% if content.third %}
  24. <div {{ region_attributes.third.addClass('layout__region', 'layout__region--third') }}>
  25. {{ content.third }}
  26. </div>
  27. {% endif %}
  28. </div>
  29. {% endif %}