You are here

public function CachedDiscoveryClearer::addCachedDiscovery in Drupal 10

Same name in this branch
  1. 10 core/lib/Drupal/Core/Plugin/CachedDiscoveryClearer.php \Drupal\Core\Plugin\CachedDiscoveryClearer::addCachedDiscovery()
  2. 10 core/lib/Drupal/Core/ProxyClass/Plugin/CachedDiscoveryClearer.php \Drupal\Core\ProxyClass\Plugin\CachedDiscoveryClearer::addCachedDiscovery()
Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Plugin/CachedDiscoveryClearer.php \Drupal\Core\Plugin\CachedDiscoveryClearer::addCachedDiscovery()
  2. 9 core/lib/Drupal/Core/Plugin/CachedDiscoveryClearer.php \Drupal\Core\Plugin\CachedDiscoveryClearer::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\Plugin

Code

public function addCachedDiscovery(CachedDiscoveryInterface $cached_discovery) {
  $this->cachedDiscoveries[] = $cached_discovery;
}