public function PluginManagerBase::clearCachedDefinitions

Clears static and persistent plugin definition caches.

Overrides CachedDiscoveryInterface::clearCachedDefinitions

File

drupal/core/lib/Drupal/Component/Plugin/PluginManagerBase.php, line 65
Definition of Drupal\Component\Plugin\PluginManagerBase

Class

PluginManagerBase
Base class for plugin managers.

Namespace

Drupal\Component\Plugin

Code

public function clearCachedDefinitions() {
  if ($this->discovery instanceof CachedDiscoveryInterface) {
    $this->discovery
      ->clearCachedDefinitions();
  }
}