function _batch_shutdown

Shutdown function: Stores the current batch data for the next request.

See also

_batch_page()

drupal_register_shutdown_function()

1 string reference to '_batch_shutdown'
_batch_page in drupal/core/includes/batch.inc
Renders the batch processing page based on the current state of the batch.

File

drupal/core/includes/batch.inc, line 469
Batch processing API for processes to run in multiple HTTP requests.

Code

function _batch_shutdown() {
  if ($batch = batch_get()) {
    Drupal::service('batch.storage')
      ->update($batch);
  }
}