Skip to content
Snippets Groups Projects

feat: Add __clone method to ExecutionContext.php so AtLeastOneOfConstraint can work.

6 files
+ 260
0
Compare changes
  • Side-by-side
  • Inline
Files
6
core.menu.static_menu_link_overrides:
type: config_object
label: 'Static menu link overrides'
constraints:
FullyValidatable: ~
mapping:
definitions:
type: sequence
@@ -12,9 +14,24 @@ core.menu.static_menu_link_overrides:
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'
Loading