function PluginManagerCacheClearer::__construct
Same name in other branches
- 10 core/modules/system/tests/modules/module_test/src/PluginManagerCacheClearer.php \Drupal\module_test\PluginManagerCacheClearer::__construct()
- 11.x core/modules/system/tests/modules/module_test/src/PluginManagerCacheClearer.php \Drupal\module_test\PluginManagerCacheClearer::__construct()
PluginManagerCacheClearer constructor.
Parameters
\Drupal\Core\State\StateInterface $state: The state service for recording what happens.
null $optional_service: An optional service for testing.
Overrides DefaultPluginManager::__construct
File
-
core/
modules/ system/ tests/ modules/ module_test/ src/ PluginManagerCacheClearer.php, line 33
Class
- PluginManagerCacheClearer
- Helps test module uninstall.
Namespace
Drupal\module_testCode
public function __construct(StateInterface $state, $optional_service = NULL) {
$this->state = $state;
$this->optionalService = $optional_service;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.