function _batch_shutdown

Same name and namespace in other branches
  1. 7.x includes/batch.inc \_batch_shutdown()
  2. 9 core/includes/batch.inc \_batch_shutdown()
  3. 8.9.x core/includes/batch.inc \_batch_shutdown()
  4. 10 core/includes/batch.inc \_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 core/includes/batch.inc
Renders the batch processing page based on the current state of the batch.

File

core/includes/batch.inc, line 558

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.