function LocalActionManager::clearCachedDefinitions

Same name in other branches
  1. 11.x core/lib/Drupal/Core/Menu/LocalActionManager.php \Drupal\Core\Menu\LocalActionManager::clearCachedDefinitions()

Overrides DefaultPluginManager::clearCachedDefinitions

File

core/lib/Drupal/Core/Menu/LocalActionManager.php, line 214

Class

LocalActionManager
Provides the default local action manager using YML as primary definition.

Namespace

Drupal\Core\Menu

Code

public function clearCachedDefinitions() {
    $cids = [];
    foreach ($this->languageManager
        ->getLanguages() as $language) {
        $cids[] = 'local_action_plugins:' . $language->getId();
    }
    $this->cacheBackend
        ->deleteMultiple($cids);
    $this->definitions = NULL;
}

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