public function CachedDiscoveryClearer::clearCachedDefinitions in Drupal 10
Same name in this branch
- 10 core/lib/Drupal/Core/Plugin/CachedDiscoveryClearer.php \Drupal\Core\Plugin\CachedDiscoveryClearer::clearCachedDefinitions()
- 10 core/lib/Drupal/Core/ProxyClass/Plugin/CachedDiscoveryClearer.php \Drupal\Core\ProxyClass\Plugin\CachedDiscoveryClearer::clearCachedDefinitions()
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Plugin/CachedDiscoveryClearer.php \Drupal\Core\Plugin\CachedDiscoveryClearer::clearCachedDefinitions()
- 9 core/lib/Drupal/Core/Plugin/CachedDiscoveryClearer.php \Drupal\Core\Plugin\CachedDiscoveryClearer::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\PluginCode
public function clearCachedDefinitions() {
foreach ($this->cachedDiscoveries as $cached_discovery) {
$cached_discovery
->clearCachedDefinitions();
}
}