You are here

public function BatchBuilder::setProgressive in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Batch/BatchBuilder.php \Drupal\Core\Batch\BatchBuilder::setProgressive()

Sets the batch to run progressively.

Parameters

bool $is_progressive: (optional) 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 indicates that the batch will finish in a single run. Defaults to TRUE.

Return value

$this

File

core/lib/Drupal/Core/Batch/BatchBuilder.php, line 267

Class

BatchBuilder
Builds an array for a batch process.

Namespace

Drupal\Core\Batch

Code

public function setProgressive($is_progressive = TRUE) {
  $this->progressive = $is_progressive;
  return $this;
}