function hacked_build_report_batch in Hacked! 8.2
Same name and namespace in other branches
- 6.2 hacked.report.inc \hacked_build_report_batch()
- 7.2 hacked.report.inc \hacked_build_report_batch()
Batch callback to build the hacked report.
1 call to hacked_build_report_batch()
- HackedCommands::buildReportBatch in src/
Commands/ HackedCommands.php - Batch callback to build Hacked! report.
2 string references to 'hacked_build_report_batch'
- HackedController::getProjectData in src/
Controller/ HackedController.php - Compute the report data for hacked.
- hacked_calculate_project_data_drush in ./
hacked.drush.inc - Compute the report data for hacked.
File
- ./
hacked.report.inc, line 13
Code
function hacked_build_report_batch($project_name, &$context) {
if (!isset($context['results']['report'])) {
$context['results']['report'] = array();
}
\Drupal::moduleHandler()
->loadInclude('hacked', 'inc', 'includes/hacked_project');
$project = new hackedProject($project_name);
$context['results']['report'][$project_name] = $project
->compute_report();
$context['message'] = t('Finished processing: @name', array(
'@name' => $project
->title(),
));
}