public function MaintenanceModeDisactivate::execute in Automatic Updates 8
Handle database updates.
Return value
bool TRUE if database update was handled successfully, FALSE otherwise.
Overrides DatabaseUpdateHandlerInterface::execute
File
- src/
Plugin/ DatabaseUpdateHandler/ MaintenanceModeDisactivate.php, line 71
Class
- MaintenanceModeDisactivate
- Remove site from maintenance mode.
Namespace
Drupal\automatic_updates\Plugin\DatabaseUpdateHandlerCode
public function execute() {
$this->logger
->notice('Maintenance mode dis-activated.');
$this->state
->set('system.maintenance_mode', FALSE);
return TRUE;
}