public function MaintenanceModeActivate::__construct in Automatic Updates 8
Constructs a new maintenance mode service.
Parameters
array $configuration: A configuration array containing information about the plugin instance.
string $plugin_id: The plugin_id for the plugin instance.
mixed $plugin_definition: The plugin implementation definition.
\Drupal\Core\State\StateInterface $state: The state.
\Psr\Log\LoggerInterface $logger: The logger.
Overrides PluginBase::__construct
File
- src/
Plugin/ DatabaseUpdateHandler/ MaintenanceModeActivate.php, line 49
Class
- MaintenanceModeActivate
- Put site into maintenance mode if there are database updates.
Namespace
Drupal\automatic_updates\Plugin\DatabaseUpdateHandlerCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, StateInterface $state, LoggerInterface $logger) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->state = $state;
$this->logger = $logger;
}