protected function DrupalUtils::takeSiteOffline in Backup and Migrate 5.0.x
Take the site offline if we need to.
1 call to DrupalUtils::takeSiteOffline()
- DrupalUtils::setUp in src/
Drupal/ Filter/ DrupalUtils.php - Run before the backup/restore begins.
File
- src/
Drupal/ Filter/ DrupalUtils.php, line 73
Class
- DrupalUtils
- @package Drupal\backup_migrate\Drupal\Filter
Namespace
Drupal\backup_migrate\Drupal\FilterCode
protected function takeSiteOffline() {
// Take the site offline.
if ($this
->confGet('site_offline') && !\Drupal::state()
->get('system.maintenance_mode')) {
\Drupal::state()
->set('system.maintenance_mode', TRUE);
$this->maintenanceMode = TRUE;
}
}