You are here

public function SimplePageVariant::setTitle in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Render/Plugin/DisplayVariant/SimplePageVariant.php \Drupal\Core\Render\Plugin\DisplayVariant\SimplePageVariant::setTitle()

Sets the title for the page being rendered.

Parameters

string|array $title: The page title: either a string for plain titles or a render array for formatted titles.

Return value

$this

Overrides PageVariantInterface::setTitle

File

core/lib/Drupal/Core/Render/Plugin/DisplayVariant/SimplePageVariant.php, line 48
Contains \Drupal\Core\Render\Plugin\DisplayVariant\SimplePageVariant.

Class

SimplePageVariant
Provides a page display variant that simply renders the main content.

Namespace

Drupal\Core\Render\Plugin\DisplayVariant

Code

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