function 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_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.