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