You are here

function _batch_current_set in Drupal 10

Same name and namespace in other branches
  1. 8 core/includes/batch.inc \_batch_current_set()
  2. 6 includes/batch.inc \_batch_current_set()
  3. 7 includes/batch.inc \_batch_current_set()
  4. 9 core/includes/batch.inc \_batch_current_set()

Returns the batch set being currently processed.

5 calls to _batch_current_set()
BatchController::batchPageTitle in core/modules/system/src/Controller/BatchController.php
The _title_callback for the system.batch_page.normal route.
_batch_next_set in core/includes/batch.inc
Retrieves the next set in a batch.
_batch_page in core/includes/batch.inc
Renders the batch processing page based on the current state of the batch.
_batch_process in core/includes/batch.inc
Processes sets in a batch.
_batch_progress_page in core/includes/batch.inc
Outputs a batch processing page.

File

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

Code

function &_batch_current_set() {
  $batch =& batch_get();
  return $batch['sets'][$batch['current_set']];
}