public StaticMenuLinkOverrides::loadOverride($id)
Loads any overrides to the definition of a static (YAML-defined) link.
Parameters
string $id: A menu link plugin ID.
Return value
array|null An override with following supported keys:
- parent
 - weight
 - menu_name
 - expanded
 - enabled
 
or NULL if there is no override for the given ID.
Overrides StaticMenuLinkOverridesInterface::loadOverride
File
- core/lib/Drupal/Core/Menu/StaticMenuLinkOverrides.php, line 73
 
Class
- StaticMenuLinkOverrides
 - Defines an implementation of the menu link override using a config file.
 
Namespace
Drupal\Core\Menu
Code
public function loadOverride($id) {
  $all_overrides = $this->getConfig()->get('definitions');
  $id = static::encodeId($id);
  return $id && isset($all_overrides[$id]) ? $all_overrides[$id] : array();
}
Please login to continue.