You are here

protected function ConfigReadonlyWhitelistTrait::setModuleHandler in Configuration Read-only mode 8

Set the module handler.

Parameters

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler to invoke hooks.

2 calls to ConfigReadonlyWhitelistTrait::setModuleHandler()
ConfigReadonlyStorage::__construct in src/Config/ConfigReadonlyStorage.php
Constructs a new ConfigReadonlyStorage.
ReadOnlyFormSubscriber::__construct in src/EventSubscriber/ReadOnlyFormSubscriber.php
ReadOnlyFormSubscriber constructor.

File

src/ConfigReadonlyWhitelistTrait.php, line 34

Class

ConfigReadonlyWhitelistTrait
Trait ConfigReadonlyWhitelistTrait.

Namespace

Drupal\config_readonly

Code

protected function setModuleHandler(ModuleHandlerInterface $module_handler) {
  $this->moduleHandler = $module_handler;
}