navigation.schema.yml

Same filename 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. - default
  18. - hide
  19. - custom
  20. path:
  21. type: string
  22. label: 'Path'
  23. constraints:
  24. NotNull: [ ]
  25. max:
  26. type: mapping
  27. label: 'Logo maximum settings'
  28. mapping:
  29. filesize:
  30. type: integer
  31. label: 'Maximum file sizes (bytes)'
  32. constraints:
  33. NotNull: [ ]
  34. Range:
  35. min: 0
  36. height:
  37. type: integer
  38. label: 'Logo expected height'
  39. constraints:
  40. NotNull: [ ]
  41. Range:
  42. min: 0
  43. width:
  44. type: integer
  45. label: 'Logo expected width'
  46. constraints:
  47. NotNull: [ ]
  48. Range:
  49. min: 0
  50. constraints:
  51. ValidKeys: '<infer>'
  52. constraints:
  53. ValidKeys: '<infer>'
  54. navigation.block_layout:
  55. type: config_object
  56. mapping:
  57. sections:
  58. type: sequence
  59. sequence:
  60. type: layout_builder.section
  61. block.settings.navigation_menu:*:
  62. type: block_settings
  63. label: 'Menu block'
  64. mapping:
  65. level:
  66. type: integer
  67. label: 'Starting level'
  68. depth:
  69. type: integer
  70. label: 'Maximum number of levels'
  71. block.settings.navigation_link:
  72. type: block_settings
  73. label: 'Link block'
  74. mapping:
  75. title:
  76. type: label
  77. label: 'Link title'
  78. uri:
  79. type: string
  80. label: 'URL'
  81. icon_class:
  82. type: string
  83. label: 'Icon CSS Class'
  84. constraints:
  85. Regex:
  86. pattern: '/^[a-z0-9_-]+$/'
  87. message: "The %value icon CSS class is not valid."
  88. constraints:
  89. FullyValidatable: ~

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