public function PluginManagerCacheClearer::__construct in Drupal 10
Same name and namespace in other branches
- 9 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;
}