3 namespace Drupal\Core\Plugin;
5 use Drupal\Component\Plugin\Discovery\CachedDiscoveryInterface;
8 * Provides a way to clear static caches of all plugin managers.
10 interface CachedDiscoveryClearerInterface {
13 * Adds a plugin manager to the active list.
15 * @param \Drupal\Component\Plugin\Discovery\CachedDiscoveryInterface $cached_discovery
16 * An object that implements the cached discovery interface, typically a
19 public function addCachedDiscovery(CachedDiscoveryInterface $cached_discovery);
22 * Clears the cache on all cached discoveries.
24 public function clearCachedDefinitions();