function CachedDiscoveryClearer::addCachedDiscovery
Same name in this branch
- 9 core/lib/Drupal/Core/ProxyClass/Plugin/CachedDiscoveryClearer.php \Drupal\Core\ProxyClass\Plugin\CachedDiscoveryClearer::addCachedDiscovery()
Same name in other branches
- 8.9.x core/lib/Drupal/Core/ProxyClass/Plugin/CachedDiscoveryClearer.php \Drupal\Core\ProxyClass\Plugin\CachedDiscoveryClearer::addCachedDiscovery()
- 8.9.x core/lib/Drupal/Core/Plugin/CachedDiscoveryClearer.php \Drupal\Core\Plugin\CachedDiscoveryClearer::addCachedDiscovery()
- 10 core/lib/Drupal/Core/ProxyClass/Plugin/CachedDiscoveryClearer.php \Drupal\Core\ProxyClass\Plugin\CachedDiscoveryClearer::addCachedDiscovery()
- 10 core/lib/Drupal/Core/Plugin/CachedDiscoveryClearer.php \Drupal\Core\Plugin\CachedDiscoveryClearer::addCachedDiscovery()
- 11.x core/lib/Drupal/Core/ProxyClass/Plugin/CachedDiscoveryClearer.php \Drupal\Core\ProxyClass\Plugin\CachedDiscoveryClearer::addCachedDiscovery()
- 11.x core/lib/Drupal/Core/Plugin/CachedDiscoveryClearer.php \Drupal\Core\Plugin\CachedDiscoveryClearer::addCachedDiscovery()
Overrides CachedDiscoveryClearerInterface::addCachedDiscovery
File
-
core/
lib/ Drupal/ Core/ Plugin/ CachedDiscoveryClearer.php, line 22
Class
- CachedDiscoveryClearer
- Defines a class which is capable of clearing the cache on plugin managers.
Namespace
Drupal\Core\PluginCode
public function addCachedDiscovery(CachedDiscoveryInterface $cached_discovery) {
$this->cachedDiscoveries[] = $cached_discovery;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.