function _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  
Code
function &_batch_current_set() {
  $batch =& batch_get();
  return $batch['sets'][$batch['current_set']];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.