public function AcsfCommands::installTaskGet in Acquia Cloud Site Factory Connector 8.2
Returns the last installation task that was completed.
@command acsf-install-task-get
@bootstrap root
Return value
string The install task in json format.
File
- src/
Commands/ AcsfCommands.php, line 40
Class
- AcsfCommands
- Provides drush commands for site related operations.
Namespace
Drupal\acsf\CommandsCode
public function installTaskGet() {
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);
}
}