Commit a6512c89 authored by jhodgdon's avatar jhodgdon

Issue #2296445 by Palashvijay4O, pjonckiere, er.pushpinderrana, roderik,...

Issue #2296445 by Palashvijay4O, pjonckiere, er.pushpinderrana, roderik, blazey: Batch API: Overriding the queue class and name is not documented
parent 95c29461
......@@ -669,6 +669,20 @@ function template_preprocess_form_element_label(&$variables) {
* the batch.
* - safe_strings: Internal use only. Used to store and retrieve strings
* marked as safe between requests.
* - progressive: A Boolean that indicates whether or not the batch needs to
* run progressively. TRUE indicates that the batch will run in more than
* one run. FALSE (default) indicates that the batch will finish in a single
* run.
* - queue: An override of the default queue (with name and class fields
* optional). An array containing two elements:
* - name: Unique identifier for the queue.
* - class: The name of a class that implements
* \Drupal\Core\Queue\QueueInterface, including the full namespace but not
* starting with a backslash. It must have a constructor with two
* arguments: $name and a \Drupal\Core\Database\Connection object.
* Typically, the class will either be \Drupal\Core\Queue\Batch or
* \Drupal\Core\Queue\BatchMemory. Defaults to Batch if progressive is
* TRUE, or to BatchMemory if progressive is FALSE.
function batch_set($batch_definition) {
if ($batch_definition) {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment