You are here

public function BatchBuilder::setTitle in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Batch/BatchBuilder.php \Drupal\Core\Batch\BatchBuilder::setTitle()
  2. 10 core/lib/Drupal/Core/Batch/BatchBuilder.php \Drupal\Core\Batch\BatchBuilder::setTitle()

Sets the title.

Parameters

string|\Drupal\Core\StringTranslation\TranslatableMarkup $title: The title.

Return value

$this

File

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

Class

BatchBuilder
Builds an array for a batch process.

Namespace

Drupal\Core\Batch

Code

public function setTitle($title) {
  $this->title = $title;
  return $this;
}