public function BatchBuilder::setInitMessage in Drupal 9
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Batch/BatchBuilder.php \Drupal\Core\Batch\BatchBuilder::setInitMessage()
Sets the displayed message while processing is initialized.
Defaults to 'Initializing.'.
Parameters
string|\Drupal\Core\StringTranslation\TranslatableMarkup $message: The text to display.
Return value
$this
File
- core/
lib/ Drupal/ Core/ Batch/ BatchBuilder.php, line 161
Class
- BatchBuilder
- Builds an array for a batch process.
Namespace
Drupal\Core\BatchCode
public function setInitMessage($message) {
$this->initMessage = $message;
return $this;
}