public function BatchBuilder::__construct in Drupal 9
Same name and namespace in other branches
- 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\BatchCode
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.');
}