Mercurial > hg > isophonics-drupal-site
annotate core/lib/Drupal/Core/Plugin/CachedDiscoveryClearerInterface.php @ 0:4c8ae668cc8c
Initial import (non-working)
author | Chris Cannam |
---|---|
date | Wed, 29 Nov 2017 16:09:58 +0000 |
parents | |
children |
rev | line source |
---|---|
Chris@0 | 1 <?php |
Chris@0 | 2 |
Chris@0 | 3 namespace Drupal\Core\Plugin; |
Chris@0 | 4 |
Chris@0 | 5 use Drupal\Component\Plugin\Discovery\CachedDiscoveryInterface; |
Chris@0 | 6 |
Chris@0 | 7 /** |
Chris@0 | 8 * Provides a way to clear static caches of all plugin managers. |
Chris@0 | 9 */ |
Chris@0 | 10 interface CachedDiscoveryClearerInterface { |
Chris@0 | 11 |
Chris@0 | 12 /** |
Chris@0 | 13 * Adds a plugin manager to the active list. |
Chris@0 | 14 * |
Chris@0 | 15 * @param \Drupal\Component\Plugin\Discovery\CachedDiscoveryInterface $cached_discovery |
Chris@0 | 16 * An object that implements the cached discovery interface, typically a |
Chris@0 | 17 * plugin manager. |
Chris@0 | 18 */ |
Chris@0 | 19 public function addCachedDiscovery(CachedDiscoveryInterface $cached_discovery); |
Chris@0 | 20 |
Chris@0 | 21 /** |
Chris@0 | 22 * Clears the cache on all cached discoveries. |
Chris@0 | 23 */ |
Chris@0 | 24 public function clearCachedDefinitions(); |
Chris@0 | 25 |
Chris@0 | 26 } |