BatchQueueController::process should accept a callable

Created on 3 May 2017, over 8 years ago
Updated 6 September 2025, about 7 hours ago

Problem/Motivation

When the batch API was converted into OO syntax β†’ and then into a service in into a service β†’ the third parameter of BatchQueueController::process() was left as a string, as it was in Drupal 8.3 and before. Update this to be able to accept any callable for extra functionality.

Proposed resolution

Update the the code in core/lib/Drupal/Core/Batch/BatchQueueController.php and as well as other files as appropriate.

Remaining tasks

  • Update the code

User interface changes

None

API changes

Extend Batch::addOperation()

Data model changes

None

πŸ“Œ Task
Status

Postponed: needs info

Version

11.0 πŸ”₯

Component

batch system

Created by

πŸ‡¬πŸ‡§United Kingdom John Cook

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024