You are here

public function BlockPageVariant::setTitle in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/block/src/Plugin/DisplayVariant/BlockPageVariant.php \Drupal\block\Plugin\DisplayVariant\BlockPageVariant::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/modules/block/src/Plugin/DisplayVariant/BlockPageVariant.php, line 122
Contains \Drupal\block\Plugin\DisplayVariant\BlockPageVariant.

Class

BlockPageVariant
Provides a page display variant that decorates the main content with blocks.

Namespace

Drupal\block\Plugin\DisplayVariant

Code

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