Mercurial > hg > isophonics-drupal-site
comparison core/lib/Drupal/Component/Plugin/Discovery/CachedDiscoveryInterface.php @ 0:4c8ae668cc8c
Initial import (non-working)
author | Chris Cannam |
---|---|
date | Wed, 29 Nov 2017 16:09:58 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:4c8ae668cc8c |
---|---|
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 } |