public function ReadOnlyFormSubscriber::__construct in Configuration Read-only mode 8
ReadOnlyFormSubscriber constructor.
Parameters
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler to invoke hooks.
File
- src/
EventSubscriber/ ReadOnlyFormSubscriber.php, line 26
Class
- ReadOnlyFormSubscriber
- Check if the given form should be read-only.
Namespace
Drupal\config_readonly\EventSubscriberCode
public function __construct(ModuleHandlerInterface $module_handler) {
$this
->setModuleHandler($module_handler);
}