navigation.schema.yml

Same filename and directory in other branches
  1. 10 core/modules/navigation/config/schema/navigation.schema.yml
core/modules/navigation/config/schema/navigation.schema.yml

File

core/modules/navigation/config/schema/navigation.schema.yml

View source
  1. # Schema for the configuration files of the Navigation module.
  2. navigation.settings:
  3. type: config_object
  4. label: 'Navigation settings'
  5. constraints:
  6. FullyValidatable: ~
  7. mapping:
  8. logo:
  9. type: mapping
  10. label: 'Logo settings'
  11. mapping:
  12. provider:
  13. type: string
  14. label: 'Select Navigation logo handling'
  15. constraints:
  16. Choice:
  17. choices:
  18. - default
  19. - hide
  20. - custom
  21. path:
  22. type: string
  23. label: 'Path'
  24. constraints:
  25. NotNull: [ ]
  26. max:
  27. type: mapping
  28. label: 'Logo maximum settings'
  29. mapping:
  30. filesize:
  31. type: integer
  32. label: 'Maximum file sizes (bytes)'
  33. constraints:
  34. NotNull: [ ]
  35. PositiveOrZero: ~
  36. height:
  37. type: integer
  38. label: 'Logo expected height'
  39. constraints:
  40. NotNull: [ ]
  41. PositiveOrZero: ~
  42. width:
  43. type: integer
  44. label: 'Logo expected width'
  45. constraints:
  46. NotNull: [ ]
  47. PositiveOrZero: ~
  48. constraints:
  49. ValidKeys: '<infer>'
  50. constraints:
  51. ValidKeys: '<infer>'
  52. navigation.block_layout:
  53. type: config_object
  54. mapping:
  55. sections:
  56. type: sequence
  57. sequence:
  58. type: layout_builder.section
  59. block.settings.navigation_menu:*:
  60. type: block_settings
  61. label: 'Menu block'
  62. mapping:
  63. level:
  64. type: integer
  65. label: 'Starting level'
  66. depth:
  67. type: integer
  68. label: 'Maximum number of levels'
  69. block.settings.navigation_link:
  70. type: block_settings
  71. label: 'Link block'
  72. mapping:
  73. title:
  74. type: label
  75. label: 'Link title'
  76. uri:
  77. type: string
  78. label: 'URL'
  79. icon_class:
  80. type: string
  81. label: 'Icon CSS Class'
  82. constraints:
  83. Regex:
  84. pattern: '/^[a-z0-9_-]+$/'
  85. message: "The %value icon CSS class is not valid."
  86. constraints:
  87. FullyValidatable: ~

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