layout_builder.layouts.yml

Same filename in other branches
  1. 9 core/modules/layout_builder/layout_builder.layouts.yml
  2. 8.9.x core/modules/layout_builder/layout_builder.layouts.yml
  3. 10 core/modules/layout_builder/layout_builder.layouts.yml
core/modules/layout_builder/layout_builder.layouts.yml

File

core/modules/layout_builder/layout_builder.layouts.yml

View source
  1. layout_twocol_section:
  2. label: 'Two column'
  3. path: layouts/twocol_section
  4. template: layout--twocol-section
  5. library: layout_builder/twocol_section
  6. class: '\Drupal\layout_builder\Plugin\Layout\TwoColumnLayout'
  7. category: 'Columns: 2'
  8. default_region: first
  9. icon_map:
  10. - [first, second]
  11. regions:
  12. first:
  13. label: First
  14. second:
  15. label: Second
  16. layout_threecol_section:
  17. label: 'Three column'
  18. path: layouts/threecol_section
  19. template: layout--threecol-section
  20. library: layout_builder/threecol_section
  21. class: '\Drupal\layout_builder\Plugin\Layout\ThreeColumnLayout'
  22. category: 'Columns: 3'
  23. default_region: second
  24. icon_map:
  25. - [first, second, third]
  26. regions:
  27. first:
  28. label: First
  29. second:
  30. label: Second
  31. third:
  32. label: Third
  33. layout_fourcol_section:
  34. label: 'Four column'
  35. path: layouts/fourcol_section
  36. template: layout--fourcol-section
  37. library: layout_builder/fourcol_section
  38. category: 'Columns: 4'
  39. default_region: first
  40. icon_map:
  41. - [first, second, third, fourth]
  42. regions:
  43. first:
  44. label: First
  45. second:
  46. label: Second
  47. third:
  48. label: Third
  49. fourth:
  50. label: Fourth

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