You are here

function hacked_build_report_batch_finished_drush in Hacked! 8.2

Same name and namespace in other branches
  1. 6.2 hacked.drush.inc \hacked_build_report_batch_finished_drush()
  2. 7.2 hacked.drush.inc \hacked_build_report_batch_finished_drush()

Completion callback for the report batch.

Parameters

bool $success: Boolean value of batch success.

array $results: An array of batch results.

1 string reference to 'hacked_build_report_batch_finished_drush'
hacked_calculate_project_data_drush in ./hacked.drush.inc
Compute the report data for hacked.

File

./hacked.drush.inc, line 132
Hacked drush command.

Code

function hacked_build_report_batch_finished_drush($success, $results) {
  if ($success) {

    // Sort the results.
    usort($results['report'], '_hacked_project_report_sort_by_status');

    // Store them.
    \Drupal::cache(HACKED_CACHE_TABLE)
      ->set('hacked:drush:full-report', $results['report'], strtotime('+1 day'));
  }
}