public function CachedDiscoveryClearer::addCachedDiscovery in Zircon Profile 8
Same name in this branch
- 8 core/lib/Drupal/Core/Plugin/CachedDiscoveryClearer.php \Drupal\Core\Plugin\CachedDiscoveryClearer::addCachedDiscovery()
 - 8 core/lib/Drupal/Core/ProxyClass/Plugin/CachedDiscoveryClearer.php \Drupal\Core\ProxyClass\Plugin\CachedDiscoveryClearer::addCachedDiscovery()
 
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Plugin/CachedDiscoveryClearer.php \Drupal\Core\Plugin\CachedDiscoveryClearer::addCachedDiscovery()
 
Adds a plugin manager to the active list.
Parameters
\Drupal\Component\Plugin\Discovery\CachedDiscoveryInterface $cached_discovery: An object that implements the cached discovery interface, typically a plugin manager.
Overrides CachedDiscoveryClearerInterface::addCachedDiscovery
File
- core/
lib/ Drupal/ Core/ Plugin/ CachedDiscoveryClearer.php, line 27  - Contains \Drupal\Core\Plugin\CachedDiscoveryClearer.
 
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;
}