You are here

public function CachedDiscoveryClearer::clearCachedDefinitions in Zircon Profile 8

Same name in this branch
  1. 8 core/lib/Drupal/Core/Plugin/CachedDiscoveryClearer.php \Drupal\Core\Plugin\CachedDiscoveryClearer::clearCachedDefinitions()
  2. 8 core/lib/Drupal/Core/ProxyClass/Plugin/CachedDiscoveryClearer.php \Drupal\Core\ProxyClass\Plugin\CachedDiscoveryClearer::clearCachedDefinitions()
Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Plugin/CachedDiscoveryClearer.php \Drupal\Core\Plugin\CachedDiscoveryClearer::clearCachedDefinitions()

Clears the cache on all cached discoveries.

Overrides CachedDiscoveryClearerInterface::clearCachedDefinitions

File

core/lib/Drupal/Core/Plugin/CachedDiscoveryClearer.php, line 34
Contains \Drupal\Core\Plugin\CachedDiscoveryClearer.

Class

CachedDiscoveryClearer
Defines a class which is capable of clearing the cache on plugin managers.

Namespace

Drupal\Core\Plugin

Code

public function clearCachedDefinitions() {
  foreach ($this->cachedDiscoveries as $cached_discovery) {
    $cached_discovery
      ->clearCachedDefinitions();
  }
}