function CachedDiscoveryInterface::clearCachedDefinitions
Same name in other branches
- 8.9.x core/lib/Drupal/Component/Plugin/Discovery/CachedDiscoveryInterface.php \Drupal\Component\Plugin\Discovery\CachedDiscoveryInterface::clearCachedDefinitions()
- 10 core/lib/Drupal/Component/Plugin/Discovery/CachedDiscoveryInterface.php \Drupal\Component\Plugin\Discovery\CachedDiscoveryInterface::clearCachedDefinitions()
- 11.x core/lib/Drupal/Component/Plugin/Discovery/CachedDiscoveryInterface.php \Drupal\Component\Plugin\Discovery\CachedDiscoveryInterface::clearCachedDefinitions()
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 core/
lib/ Drupal/ Core/ Plugin/ DefaultPluginManager.php - Clears static and persistent plugin definition caches.
File
-
core/
lib/ Drupal/ Component/ Plugin/ Discovery/ CachedDiscoveryInterface.php, line 17
Class
- CachedDiscoveryInterface
- Interface for discovery components holding a cache of plugin definitions.
Namespace
Drupal\Component\Plugin\DiscoveryCode
public function clearCachedDefinitions();
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.