You are here

public function AcsfExtraCommands::postOffline in Acquia Cloud Site Factory Connector 8.2

Runs after a go-offline command executes. Verifies maintenance mode.

@hook post-command go-offline

File

src/Commands/AcsfExtraCommands.php, line 95

Class

AcsfExtraCommands
Provides drush commands for site related operations.

Namespace

Drush\Commands

Code

public function postOffline() {
  $offline = \Drupal::state()
    ->get('system.maintenance_mode');
  if ($offline) {
    $this
      ->logger()
      ->success(dt('Site has been placed offline.'));
  }
  else {
    $this
      ->logger()
      ->error(dt('Site has not been placed offline.'));
  }
}