core.menu.schema.yml

Same filename and directory in other branches
  1. 10 core/config/schema/core.menu.schema.yml
  2. 11.x core/config/schema/core.menu.schema.yml
  3. 9 core/config/schema/core.menu.schema.yml
  4. 8.9.x core/config/schema/core.menu.schema.yml
core/config/schema/core.menu.schema.yml

File

core/config/schema/core.menu.schema.yml

View source
  1. core.menu.static_menu_link_overrides:
  2. type: config_object
  3. label: 'Static menu link overrides'
  4. constraints:
  5. FullyValidatable: ~
  6. mapping:
  7. definitions:
  8. type: sequence
  9. label: Definitions
  10. sequence:
  11. type: mapping
  12. label: Definition
  13. mapping:
  14. menu_name:
  15. type: string
  16. label: 'Menu name'
  17. # This is the id of system.menu.* config.
  18. # @see core/modules/system/config/schema/system.schema.yml
  19. ConfigExists:
  20. prefix: 'system.menu.'
  21. parent:
  22. type: string
  23. label: 'Parent'
  24. # Menu link plugins specify the empty string if there is no parent.
  25. # So this can be an empty string('') or valid menu link plugin ID.
  26. # @see \Drupal\Core\Menu\MenuLinkInterface::getParent()
  27. constraints:
  28. AtLeastOneOf:
  29. constraints:
  30. - PluginExists:
  31. manager: plugin.manager.menu.link
  32. interface: 'Drupal\Core\Menu\MenuLinkInterface'
  33. - IdenticalTo:
  34. value: ''
  35. weight:
  36. type: weight
  37. label: 'Weight'
  38. expanded:
  39. type: boolean
  40. label: 'Expanded'
  41. enabled:
  42. type: boolean
  43. label: 'Enabled'

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