layout_builder.layouts.yml

Same filename and directory in other branches
  1. 11.x core/modules/layout_builder/layout_builder.layouts.yml
  2. 10 core/modules/layout_builder/layout_builder.layouts.yml
  3. 9 core/modules/layout_builder/layout_builder.layouts.yml
  4. 8.9.x 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. translation context: 'Layout region'
  15. second:
  16. label: Second
  17. translation context: 'Layout region'
  18. layout_threecol_section:
  19. label: 'Three column'
  20. path: layouts/threecol_section
  21. template: layout--threecol-section
  22. library: layout_builder/threecol_section
  23. class: '\Drupal\layout_builder\Plugin\Layout\ThreeColumnLayout'
  24. category: 'Columns: 3'
  25. default_region: second
  26. icon_map:
  27. - [first, second, third]
  28. regions:
  29. first:
  30. label: First
  31. translation context: 'Layout region'
  32. second:
  33. label: Second
  34. translation context: 'Layout region'
  35. third:
  36. label: Third
  37. translation context: 'Layout region'
  38. layout_fourcol_section:
  39. label: 'Four column'
  40. path: layouts/fourcol_section
  41. template: layout--fourcol-section
  42. library: layout_builder/fourcol_section
  43. category: 'Columns: 4'
  44. default_region: first
  45. icon_map:
  46. - [first, second, third, fourth]
  47. regions:
  48. first:
  49. label: First
  50. translation context: 'Layout region'
  51. second:
  52. label: Second
  53. translation context: 'Layout region'
  54. third:
  55. label: Third
  56. translation context: 'Layout region'
  57. fourth:
  58. label: Fourth
  59. translation context: 'Layout region'

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