You are here

ds-2col.html.twig in Display Suite 8.2

Same filename and directory in other branches
  1. 8.4 templates/ds-2col.html.twig
  2. 8.3 templates/ds-2col.html.twig

Display Suite 2 column template.

Available variables:

  • outer_wrapper: outer wrapper element
  • left_wrapper: wrapper element around left region
  • right_wrapper: wrapper element around right region
  • attributes: layout attributes
  • left_attributes: attributes for left region
  • right_attributes: attributes for right region
  • left: content of left region
  • right: content of right region

File

templates/ds-2col.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Display Suite 2 column template.
  5. *
  6. * Available variables:
  7. * - outer_wrapper: outer wrapper element
  8. * - left_wrapper: wrapper element around left region
  9. * - right_wrapper: wrapper element around right region
  10. * - attributes: layout attributes
  11. * - left_attributes: attributes for left region
  12. * - right_attributes: attributes for right region
  13. * - left: content of left region
  14. * - right: content of right region
  15. */
  16. #}
  17. <{{ outer_wrapper }}{{ attributes.addClass('ds-2col', 'clearfix') }}>
  18. {{ title_suffix.contextual_links }}
  19. <{{ left_wrapper }}{{ left_attributes.addClass('group-left') }}>
  20. {{ left }}
  21. </{{ left_wrapper }}>
  22. <{{ right_wrapper }}{{ right_attributes.addClass('group-right') }}>
  23. {{ right }}
  24. </{{ right_wrapper }}>
  25. </{{ outer_wrapper }}>