You are here

public function HackedCommands::buildReportBatchFinished in Hacked! 8.2

Completion callback for the report batch.

Parameters

bool $success: Boolean value of batch success.

array $results: An array of batch results.

File

src/Commands/HackedCommands.php, line 404

Class

HackedCommands
A Drush commandfile for Hacked! module.

Namespace

Drupal\hacked\Commands

Code

public function buildReportBatchFinished($success, array $results) {
  if ($success) {

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

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