public function CachedDiscoveryClearer::addCachedDiscovery in Drupal 10
Same name in this branch
- 10 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()
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/ProxyClass/Plugin/CachedDiscoveryClearer.php \Drupal\Core\ProxyClass\Plugin\CachedDiscoveryClearer::addCachedDiscovery()
- 9 core/lib/Drupal/Core/ProxyClass/Plugin/CachedDiscoveryClearer.php \Drupal\Core\ProxyClass\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/ ProxyClass/ Plugin/ CachedDiscoveryClearer.php, line 73
Class
- CachedDiscoveryClearer
- Provides a proxy class for \Drupal\Core\Plugin\CachedDiscoveryClearer.
Namespace
Drupal\Core\ProxyClass\PluginCode
public function addCachedDiscovery(\Drupal\Component\Plugin\Discovery\CachedDiscoveryInterface $cached_discovery) {
return $this
->lazyLoadItself()
->addCachedDiscovery($cached_discovery);
}