function PluginManagerCacheClearer::clearCachedDefinitions
Same name in other branches
- 9 core/modules/system/tests/modules/module_test/src/PluginManagerCacheClearer.php \Drupal\module_test\PluginManagerCacheClearer::clearCachedDefinitions()
- 11.x 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));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.