You are here

function drush_acsf_install_task_get in Acquia Cloud Site Factory Connector 8

Command callback. Fetches the last installation task.

File

./acsf.drush.inc, line 423
Provides drush commands for site related operations.

Code

function drush_acsf_install_task_get() {
  try {
    $task = \Drupal::state()
      ->get('install_task');
  } catch (\Exception $e) {

    // Do not trigger an error if the database query fails, since the database
    // might not be set up yet.
  }
  if (isset($task)) {
    return json_encode($task);
  }
}