function drush_acsf_post_go_offline in Acquia Cloud Site Factory Connector 8
Runs after a go-offline command executes. Verifies maintenance mode.
File
- ./
acsf.drush.inc, line 306 - Provides drush commands for site related operations.
Code
function drush_acsf_post_go_offline() {
$offline = \Drupal::state()
->get('system.maintenance_mode');
if ($offline) {
drush_log('Site has been placed offline.', 'success');
}
else {
drush_log('Site has not been placed offline.', 'error');
}
}