You are here

protected function DrupalUtils::takeSiteOnline in Backup and Migrate 5.0.x

Take the site online if it was taken offline for this operation.

1 call to DrupalUtils::takeSiteOnline()
DrupalUtils::tearDown in src/Drupal/Filter/DrupalUtils.php
Run after the operation is complete.

File

src/Drupal/Filter/DrupalUtils.php, line 84

Class

DrupalUtils
@package Drupal\backup_migrate\Drupal\Filter

Namespace

Drupal\backup_migrate\Drupal\Filter

Code

protected function takeSiteOnline() {

  // Take the site online again.
  if ($this->maintenanceMode) {
    \Drupal::state()
      ->set('system.maintenance_mode', FALSE);
  }
}