You are here

public function CachedDiscoveryInterface::clearCachedDefinitions in Plug 7

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!

1 method overrides CachedDiscoveryInterface::clearCachedDefinitions()
DefaultPluginManager::clearCachedDefinitions in lib/Drupal/Core/Plugin/DefaultPluginManager.php
Clears static and persistent plugin definition caches.

File

lib/Drupal/Component/Plugin/Discovery/CachedDiscoveryInterface.php, line 22
Contains \Drupal\Component\Plugin\Discovery\CachedDiscoveryInterface.

Class

CachedDiscoveryInterface
Interface for discovery components holding a cache of plugin definitions.

Namespace

Drupal\Component\Plugin\Discovery

Code

public function clearCachedDefinitions();