function _batch_do
_batch_do()
Does one execution pass with JavaScript and returns progress to the browser.
See also
_batch_progress_page_js()
File
- core/includes/batch.inc, line 93
- 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(array('status' => TRUE, 'percentage' => $percentage, 'message' => $message, 'label' => $label));
}
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!includes!batch.inc/function/_batch_do/8.1.x