You are here

public function GroupContentEnablerManager::clearCachedDefinitions in Group 8

Clears static and persistent plugin definition caches.

Don't resort to calling \Drupal::cache()->delete() and friends to make Drupal detect new or updated plugin definitions. Always use this method on the appropriate plugin type's plugin manager!

Overrides DefaultPluginManager::clearCachedDefinitions

File

src/Plugin/GroupContentEnablerManager.php, line 482

Class

GroupContentEnablerManager
Manages GroupContentEnabler plugin implementations.

Namespace

Drupal\group\Plugin

Code

public function clearCachedDefinitions() {
  parent::clearCachedDefinitions();

  // The collection of all plugins should only change if the plugin
  // definitions change, so we can safely reset that here.
  $this->allPlugins = NULL;
}