CachedDiscoveryClearerInterface.php 666 B

1234567891011121314151617181920212223242526
  1. <?php
  2. namespace Drupal\Core\Plugin;
  3. use Drupal\Component\Plugin\Discovery\CachedDiscoveryInterface;
  4. /**
  5. * Provides a way to clear static caches of all plugin managers.
  6. */
  7. interface CachedDiscoveryClearerInterface {
  8. /**
  9. * Adds a plugin manager to the active list.
  10. *
  11. * @param \Drupal\Component\Plugin\Discovery\CachedDiscoveryInterface $cached_discovery
  12. * An object that implements the cached discovery interface, typically a
  13. * plugin manager.
  14. */
  15. public function addCachedDiscovery(CachedDiscoveryInterface $cached_discovery);
  16. /**
  17. * Clears the cache on all cached discoveries.
  18. */
  19. public function clearCachedDefinitions();
  20. }