core.menu.schema.yml
Same filename and directory in other branches
File
-
core/
config/ schema/ core.menu.schema.yml
View source
- core.menu.static_menu_link_overrides:
- type: config_object
- label: 'Static menu link overrides'
- constraints:
- FullyValidatable: ~
- mapping:
- definitions:
- type: sequence
- label: Definitions
- sequence:
- type: mapping
- label: Definition
- mapping:
- menu_name:
- type: string
- label: 'Menu name'
- # This is the id of system.menu.* config.
- # @see core/modules/system/config/schema/system.schema.yml
- ConfigExists:
- prefix: 'system.menu.'
- parent:
- type: string
- label: 'Parent'
- # Menu link plugins specify the empty string if there is no parent.
- # So this can be an empty string('') or valid menu link plugin ID.
- # @see \Drupal\Core\Menu\MenuLinkInterface::getParent()
- constraints:
- AtLeastOneOf:
- constraints:
- - PluginExists:
- manager: plugin.manager.menu.link
- interface: 'Drupal\Core\Menu\MenuLinkInterface'
- - IdenticalTo:
- value: ''
- weight:
- type: weight
- label: 'Weight'
- expanded:
- type: boolean
- label: 'Expanded'
- enabled:
- type: boolean
- label: 'Enabled'
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.