_batch_shutdown()
Shutdown function: Stores the current batch data for the next request.
drupal_register_shutdown_function()
function _batch_shutdown() { if ($batch = batch_get()) { \Drupal::service('batch.storage')->update($batch); } }
© 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_shutdown/8.1.x