navigation.schema.yml

Same filename and directory in other branches
  1. 10 core/modules/navigation/config/schema/navigation.schema.yml
  2. 11.x 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:
  50. allowedKeys: '<infer>'
  51. constraints:
  52. ValidKeys:
  53. allowedKeys: '<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.