StaticMenuLinkOverridesInterface::saveOverride

public StaticMenuLinkOverridesInterface::saveOverride($id, array $definition) 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. File core/lib/Drupal/Core/Menu/StaticMenuLinkOverridesInterface.php, line 80 Class StaticMenuLinkOverridesInterface Defines an interface for objects which overrides menu links de

StaticMenuLinkOverridesInterface::loadOverride

public StaticMenuLinkOverridesInterface::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. File core/lib/Drupal/Core/Menu/StaticMenuLinkOverridesInterface.php, line 33 Class StaticMenuLinkOverridesInterface Defines an interface for objects which o

StaticMenuLinkOverrides::reload

public StaticMenuLinkOverrides::reload() Reloads the overrides from config. Forces all overrides to be reloaded from config storage to compare the override value with the value submitted during test form submission. Overrides StaticMenuLinkOverridesInterface::reload File core/lib/Drupal/Core/Menu/StaticMenuLinkOverrides.php, line 65 Class StaticMenuLinkOverrides Defines an implementation of the menu link override using a config file. Namespace Drupal\Core\Menu Code public function relo

StaticMenuLinkOverridesInterface::deleteMultipleOverrides

public StaticMenuLinkOverridesInterface::deleteMultipleOverrides(array $ids) Deletes multiple overrides to definitions of static (YAML-defined) links. Parameters array $ids: Array of menu link plugin IDs. File core/lib/Drupal/Core/Menu/StaticMenuLinkOverridesInterface.php, line 49 Class StaticMenuLinkOverridesInterface Defines an interface for objects which overrides menu links defined in YAML. Namespace Drupal\Core\Menu Code public function deleteMultipleOverrides(array $ids);

StaticMenuLinkOverridesInterface

Defines an interface for objects which overrides menu links defined in YAML. Hierarchy interface \Drupal\Core\Menu\StaticMenuLinkOverridesInterface File core/lib/Drupal/Core/Menu/StaticMenuLinkOverridesInterface.php, line 8 Namespace Drupal\Core\Menu Members Name Modifiers Type Description StaticMenuLinkOverridesInterface::deleteMultipleOverrides public function Deletes multiple overrides to definitions of static (YAML-defined) links. StaticMenuLinkOverridesInterface::

StaticMenuLinkOverrides::saveOverride

public StaticMenuLinkOverrides::saveOverride($id, array $definition) 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. Overrides StaticMenuLinkOverridesInterface::saveOverride File core/lib/Drupal/Core/Menu/StaticMenuLinkOverrides.php, line 125 Class StaticMenuLinkOverrides Defines an implementation of th

StaticMenuLinkOverrides::__construct

public StaticMenuLinkOverrides::__construct(ConfigFactoryInterface $config_factory) Constructs a StaticMenuLinkOverrides object. Parameters \Drupal\Core\Config\ConfigFactoryInterface $config_factory: A configuration factory instance. File core/lib/Drupal/Core/Menu/StaticMenuLinkOverrides.php, line 43 Class StaticMenuLinkOverrides Defines an implementation of the menu link override using a config file. Namespace Drupal\Core\Menu Code public function __construct(ConfigFactoryInterface $

StaticMenuLinkOverrides::getConfig

protected StaticMenuLinkOverrides::getConfig() Gets the configuration object when needed. Since this service is injected into all static menu link objects, but only used when updating one, avoid actually loading the config when it's not needed. File core/lib/Drupal/Core/Menu/StaticMenuLinkOverrides.php, line 54 Class StaticMenuLinkOverrides Defines an implementation of the menu link override using a config file. Namespace Drupal\Core\Menu Code protected function getConfig() { if (emp

StaticMenuLinkOverrides::loadMultipleOverrides

public StaticMenuLinkOverrides::loadMultipleOverrides(array $ids) Loads overrides to multiple definitions of a static (YAML-defined) link. Parameters array $ids: Array of menu link plugin IDs. Return value array One or override keys by plugin ID. Overrides StaticMenuLinkOverridesInterface::loadMultipleOverrides See also \Drupal\Core\Menu\StaticMenuLinkOverridesInterface File core/lib/Drupal/Core/Menu/StaticMenuLinkOverrides.php, line 108 Class StaticMenuLinkOverrides Defines an implemen

StaticMenuLinkOverrides::getCacheTags

public StaticMenuLinkOverrides::getCacheTags() The unique cache tag associated with this menu link override. Return value string[] An array of cache tags. Overrides StaticMenuLinkOverridesInterface::getCacheTags File core/lib/Drupal/Core/Menu/StaticMenuLinkOverrides.php, line 158 Class StaticMenuLinkOverrides Defines an implementation of the menu link override using a config file. Namespace Drupal\Core\Menu Code public function getCacheTags() { return $this->getConfig()->getCa