public function PluginManagerCacheClearer::clearCachedDefinitions in Drupal 10
Same name and namespace in other branches
- 9 core/modules/system/tests/modules/module_test/src/PluginManagerCacheClearer.php \Drupal\module_test\PluginManagerCacheClearer::clearCachedDefinitions()
Tests call to CachedDiscoveryInterface::clearCachedDefinitions().
Overrides DefaultPluginManager::clearCachedDefinitions
See also
\Drupal\Component\Plugin\Discovery\CachedDiscoveryInterface::clearCachedDefinitions()
File
- core/
modules/ system/ tests/ modules/ module_test/ src/ PluginManagerCacheClearer.php, line 43
Class
- PluginManagerCacheClearer
- Helps test module uninstall.
Namespace
Drupal\module_testCode
public function clearCachedDefinitions() {
$this->state
->set(self::class, isset($this->optionalService));
}