1. 8.5.x core/lib/Drupal/Component/Plugin/Discovery/CachedDiscoveryInterface.php CachedDiscoveryInterface
  2. 8.0.x core/lib/Drupal/Component/Plugin/Discovery/CachedDiscoveryInterface.php CachedDiscoveryInterface
  3. 8.1.x core/lib/Drupal/Component/Plugin/Discovery/CachedDiscoveryInterface.php CachedDiscoveryInterface
  4. 8.2.x core/lib/Drupal/Component/Plugin/Discovery/CachedDiscoveryInterface.php CachedDiscoveryInterface
  5. 8.3.x core/lib/Drupal/Component/Plugin/Discovery/CachedDiscoveryInterface.php CachedDiscoveryInterface
  6. 8.4.x core/lib/Drupal/Component/Plugin/Discovery/CachedDiscoveryInterface.php CachedDiscoveryInterface
  7. 8.6.x core/lib/Drupal/Component/Plugin/Discovery/CachedDiscoveryInterface.php CachedDiscoveryInterface

Interface for discovery components holding a cache of plugin definitions.

Hierarchy

Expanded class hierarchy of CachedDiscoveryInterface

All classes that implement CachedDiscoveryInterface

5 files declare their use of CachedDiscoveryInterface

File

core/lib/Drupal/Component/Plugin/Discovery/CachedDiscoveryInterface.php, line 8

Namespace

Drupal\Component\Plugin\Discovery
View source
interface CachedDiscoveryInterface extends DiscoveryInterface {

  /**
   * Clears static and persistent plugin definition caches.
   *
   * Don't resort to calling \Drupal::cache()->delete() and friends to make
   * Drupal detect new or updated plugin definitions. Always use this method on
   * the appropriate plugin type's plugin manager!
   */
  public function clearCachedDefinitions();

  /**
   * Disable the use of caches.
   *
   * Can be used to ensure that uncached plugin definitions are returned,
   * without invalidating all cached information.
   *
   * This will also remove all local/static caches.
   *
   * @param bool $use_caches
   *   FALSE to not use any caches.
   */
  public function useCaches($use_caches = FALSE);

}

Members

Contains filters are case sensitive
Namesort descending Modifiers Type Description Overrides
CachedDiscoveryInterface::clearCachedDefinitions public function Clears static and persistent plugin definition caches.
CachedDiscoveryInterface::useCaches public function Disable the use of caches.
DiscoveryInterface::getDefinition public function Gets a specific plugin definition. Overrides DiscoveryInterface::getDefinition
DiscoveryInterface::getDefinitions public function Gets the definition of all plugins for this type. Overrides DiscoveryInterface::getDefinitions
DiscoveryInterface::hasDefinition public function Indicates if a specific plugin definition exists. Overrides DiscoveryInterface::hasDefinition