function PluginManagerCacheClearer::clearCachedDefinitions

Same name in other branches
  1. 9 core/modules/system/tests/modules/module_test/src/PluginManagerCacheClearer.php \Drupal\module_test\PluginManagerCacheClearer::clearCachedDefinitions()
  2. 10 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 45

Class

PluginManagerCacheClearer
Helps test module uninstall.

Namespace

Drupal\module_test

Code

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.