public function PluginManagerCacheClearer::clearCachedDefinitions in Drupal 9
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));
}