function StaticMenuLinkOverridesInterface::saveOverride

Same name in other branches
  1. 9 core/lib/Drupal/Core/Menu/StaticMenuLinkOverridesInterface.php \Drupal\Core\Menu\StaticMenuLinkOverridesInterface::saveOverride()
  2. 10 core/lib/Drupal/Core/Menu/StaticMenuLinkOverridesInterface.php \Drupal\Core\Menu\StaticMenuLinkOverridesInterface::saveOverride()
  3. 11.x core/lib/Drupal/Core/Menu/StaticMenuLinkOverridesInterface.php \Drupal\Core\Menu\StaticMenuLinkOverridesInterface::saveOverride()

Saves the override.

Parameters

string $id: A menu link plugin ID.

array $definition: The definition values to override. Supported keys:

  • menu_name
  • parent
  • weight
  • expanded
  • enabled

Return value

array A list of properties which got saved.

1 method overrides StaticMenuLinkOverridesInterface::saveOverride()
StaticMenuLinkOverrides::saveOverride in core/lib/Drupal/Core/Menu/StaticMenuLinkOverrides.php
Saves the override.

File

core/lib/Drupal/Core/Menu/StaticMenuLinkOverridesInterface.php, line 80

Class

StaticMenuLinkOverridesInterface
Defines an interface for objects which overrides menu links defined in YAML.

Namespace

Drupal\Core\Menu

Code

public function saveOverride($id, array $definition);

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