public function 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 reload() {
  $this->config = NULL;
  $this->configFactory->reset($this->configName);
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Menu!StaticMenuLinkOverrides.php/function/StaticMenuLinkOverrides::reload/8.1.x