function _batch_shutdown
_batch_shutdown()
Shutdown function: Stores the current batch data for the next request.
See also
drupal_register_shutdown_function()
File
- core/includes/batch.inc, line 515
- 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); } }
© 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