function CachedDiscoveryClearer::clearCachedDefinitions

Same name in this branch
  1. 8.9.x core/lib/Drupal/Core/ProxyClass/Plugin/CachedDiscoveryClearer.php \Drupal\Core\ProxyClass\Plugin\CachedDiscoveryClearer::clearCachedDefinitions()
Same name in other branches
  1. 9 core/lib/Drupal/Core/ProxyClass/Plugin/CachedDiscoveryClearer.php \Drupal\Core\ProxyClass\Plugin\CachedDiscoveryClearer::clearCachedDefinitions()
  2. 9 core/lib/Drupal/Core/Plugin/CachedDiscoveryClearer.php \Drupal\Core\Plugin\CachedDiscoveryClearer::clearCachedDefinitions()
  3. 10 core/lib/Drupal/Core/ProxyClass/Plugin/CachedDiscoveryClearer.php \Drupal\Core\ProxyClass\Plugin\CachedDiscoveryClearer::clearCachedDefinitions()
  4. 10 core/lib/Drupal/Core/Plugin/CachedDiscoveryClearer.php \Drupal\Core\Plugin\CachedDiscoveryClearer::clearCachedDefinitions()
  5. 11.x core/lib/Drupal/Core/ProxyClass/Plugin/CachedDiscoveryClearer.php \Drupal\Core\ProxyClass\Plugin\CachedDiscoveryClearer::clearCachedDefinitions()
  6. 11.x core/lib/Drupal/Core/Plugin/CachedDiscoveryClearer.php \Drupal\Core\Plugin\CachedDiscoveryClearer::clearCachedDefinitions()

Overrides CachedDiscoveryClearerInterface::clearCachedDefinitions

File

core/lib/Drupal/Core/Plugin/CachedDiscoveryClearer.php, line 29

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();
    }
}

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