class CachedDiscoveryClearer
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Plugin/CachedDiscoveryClearer.php \Drupal\Core\Plugin\CachedDiscoveryClearer
- 10 core/lib/Drupal/Core/ProxyClass/Plugin/CachedDiscoveryClearer.php \Drupal\Core\ProxyClass\Plugin\CachedDiscoveryClearer
- 10 core/lib/Drupal/Core/Plugin/CachedDiscoveryClearer.php \Drupal\Core\Plugin\CachedDiscoveryClearer
- 9 core/lib/Drupal/Core/ProxyClass/Plugin/CachedDiscoveryClearer.php \Drupal\Core\ProxyClass\Plugin\CachedDiscoveryClearer
- 9 core/lib/Drupal/Core/Plugin/CachedDiscoveryClearer.php \Drupal\Core\Plugin\CachedDiscoveryClearer
- 8.9.x core/lib/Drupal/Core/ProxyClass/Plugin/CachedDiscoveryClearer.php \Drupal\Core\ProxyClass\Plugin\CachedDiscoveryClearer
- 8.9.x core/lib/Drupal/Core/Plugin/CachedDiscoveryClearer.php \Drupal\Core\Plugin\CachedDiscoveryClearer
Defines a class which is capable of clearing the cache on plugin managers.
Hierarchy
- class \Drupal\Core\Plugin\CachedDiscoveryClearer implements \Drupal\Core\Plugin\CachedDiscoveryClearerInterface
Expanded class hierarchy of CachedDiscoveryClearer
1 string reference to 'CachedDiscoveryClearer'
- core.services.yml in core/
core.services.yml - core/core.services.yml
1 service uses CachedDiscoveryClearer
File
-
core/
lib/ Drupal/ Core/ Plugin/ CachedDiscoveryClearer.php, line 10
Namespace
Drupal\Core\PluginView source
class CachedDiscoveryClearer implements CachedDiscoveryClearerInterface {
/**
* Constructs the CachedDiscoveryClearer service.
*
* @param \Traversable $cachedDiscoveries
* The cached discoveries.
*/
public function __construct(#[AutowireIterator(tag: 'plugin_manager_cache_clear')] protected \Traversable $cachedDiscoveries) {
}
/**
* {@inheritdoc}
*/
public function clearCachedDefinitions() {
foreach ($this->cachedDiscoveries as $cached_discovery) {
$cached_discovery->clearCachedDefinitions();
}
}
}
Members
| Title Sort descending | Modifiers | Object type | Summary | Overriden Title |
|---|---|---|---|---|
| CachedDiscoveryClearer::clearCachedDefinitions | public | function | Clears the cache on all cached discoveries. | Overrides CachedDiscoveryClearerInterface::clearCachedDefinitions |
| CachedDiscoveryClearer::__construct | public | function | Constructs the CachedDiscoveryClearer service. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.