function _batch_do in Drupal 8
Same name and namespace in other branches
- 6 includes/batch.inc \_batch_do()
- 7 includes/batch.inc \_batch_do()
- 9 core/includes/batch.inc \_batch_do()
- 10 core/includes/batch.inc \_batch_do()
Does one execution pass with JavaScript and returns progress to the browser.
See also
_batch_progress_page_js()
1 call to _batch_do()
- _batch_page in core/
includes/ batch.inc - Renders the batch processing page based on the current state of the batch.
File
- core/
includes/ batch.inc, line 135 - Batch processing API for processes to run in multiple HTTP requests.
Code
function _batch_do() {
// Perform actual processing.
list($percentage, $message, $label) = _batch_process();
return new JsonResponse([
'status' => TRUE,
'percentage' => $percentage,
'message' => $message,
'label' => $label,
]);
}