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!
Overrides CachedDiscoveryInterface::clearCachedDefinitions
1 call to DerivativeDiscoveryDecorator::clearCachedDefinitions()
- DerivativeDiscoveryDecorator::useCaches in core/
lib/ Drupal/ Component/ Plugin/ Discovery/ DerivativeDiscoveryDecorator.php - Disable the use of caches.
File
- core/
lib/ Drupal/ Component/ Plugin/ Discovery/ DerivativeDiscoveryDecorator.php, line 250
Class
- DerivativeDiscoveryDecorator
- Base class providing the tools for a plugin discovery to be derivative aware.
Namespace
Drupal\Component\Plugin\DiscoveryCode
public function clearCachedDefinitions() {
$this->derivers = [];
}