Further Drupal 8.6.4 changes. Some core files were not committed before a commit...
[yaffs-website] / web / core / lib / Drupal / Core / Plugin / CachedDiscoveryClearerInterface.php
1 <?php
2
3 namespace Drupal\Core\Plugin;
4
5 use Drupal\Component\Plugin\Discovery\CachedDiscoveryInterface;
6
7 /**
8  * Provides a way to clear static caches of all plugin managers.
9  */
10 interface CachedDiscoveryClearerInterface {
11
12   /**
13    * Adds a plugin manager to the active list.
14    *
15    * @param \Drupal\Component\Plugin\Discovery\CachedDiscoveryInterface $cached_discovery
16    *   An object that implements the cached discovery interface, typically a
17    *   plugin manager.
18    */
19   public function addCachedDiscovery(CachedDiscoveryInterface $cached_discovery);
20
21   /**
22    * Clears the cache on all cached discoveries.
23    */
24   public function clearCachedDefinitions();
25
26 }