function StaticMenuLinkOverridesInterface::loadOverride
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Menu/StaticMenuLinkOverridesInterface.php \Drupal\Core\Menu\StaticMenuLinkOverridesInterface::loadOverride()
- 10 core/lib/Drupal/Core/Menu/StaticMenuLinkOverridesInterface.php \Drupal\Core\Menu\StaticMenuLinkOverridesInterface::loadOverride()
- 11.x core/lib/Drupal/Core/Menu/StaticMenuLinkOverridesInterface.php \Drupal\Core\Menu\StaticMenuLinkOverridesInterface::loadOverride()
Loads any overrides to the definition of a static (YAML-defined) link.
Parameters
string $id: A menu link plugin ID.
Return value
array An override with following supported keys:
- parent
- weight
- menu_name
- expanded
- enabled
or an empty array if there is no override for the given ID.
1 method overrides StaticMenuLinkOverridesInterface::loadOverride()
- StaticMenuLinkOverrides::loadOverride in core/
lib/ Drupal/ Core/ Menu/ StaticMenuLinkOverrides.php - Loads any overrides to the definition of a static (YAML-defined) link.
File
-
core/
lib/ Drupal/ Core/ Menu/ StaticMenuLinkOverridesInterface.php, line 33
Class
- StaticMenuLinkOverridesInterface
- Defines an interface for objects which overrides menu links defined in YAML.
Namespace
Drupal\Core\MenuCode
public function loadOverride($id);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.