You are here

public function BatchBuilder::__construct in Drupal 9

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

Sets the default values for the batch builder.

File

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

Class

BatchBuilder
Builds an array for a batch process.

Namespace

Drupal\Core\Batch

Code

public function __construct() {
  $this->title = new TranslatableMarkup('Processing');
  $this->initMessage = new TranslatableMarkup('Initializing.');
  $this->progressMessage = new TranslatableMarkup('Completed @current of @total.');
  $this->errorMessage = new TranslatableMarkup('An error has occurred.');
}