You are here

public function ContextBlockPageVariant::setTitle in Context 8

Same name and namespace in other branches
  1. 8.4 src/Plugin/DisplayVariant/ContextBlockPageVariant.php \Drupal\context\Plugin\DisplayVariant\ContextBlockPageVariant::setTitle()
  2. 8.0 src/Plugin/DisplayVariant/ContextBlockPageVariant.php \Drupal\context\Plugin\DisplayVariant\ContextBlockPageVariant::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

src/Plugin/DisplayVariant/ContextBlockPageVariant.php, line 88

Class

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

Namespace

Drupal\context\Plugin\DisplayVariant

Code

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