public function BatchBuilder::setProgressive in Drupal 8
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Batch/BatchBuilder.php \Drupal\Core\Batch\BatchBuilder::setProgressive()
- 10 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 266
Class
- BatchBuilder
- Builds an array for a batch process.
Namespace
Drupal\Core\BatchCode
public function setProgressive($is_progressive = TRUE) {
$this->progressive = $is_progressive;
return $this;
}