Security update for Core, with self-updated composer
[yaffs-website] / web / core / lib / Drupal / Component / Plugin / Discovery / CachedDiscoveryInterface.php
1 <?php
2
3 namespace Drupal\Component\Plugin\Discovery;
4
5 /**
6  * Interface for discovery components holding a cache of plugin definitions.
7  */
8 interface CachedDiscoveryInterface extends DiscoveryInterface {
9
10   /**
11    * Clears static and persistent plugin definition caches.
12    *
13    * Don't resort to calling \Drupal::cache()->delete() and friends to make
14    * Drupal detect new or updated plugin definitions. Always use this method on
15    * the appropriate plugin type's plugin manager!
16    */
17   public function clearCachedDefinitions();
18
19   /**
20    * Disable the use of caches.
21    *
22    * Can be used to ensure that uncached plugin definitions are returned,
23    * without invalidating all cached information.
24    *
25    * This will also remove all local/static caches.
26    *
27    * @param bool $use_caches
28    *   FALSE to not use any caches.
29    */
30   public function useCaches($use_caches = FALSE);
31
32 }