public function ContextBlockPageVariant::setTitle in Context 8.4
Same name and namespace in other branches
- 8 src/Plugin/DisplayVariant/ContextBlockPageVariant.php \Drupal\context\Plugin\DisplayVariant\ContextBlockPageVariant::setTitle()
- 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 111
Class
- ContextBlockPageVariant
- Provides a page display variant that decorates the main content with blocks.
Namespace
Drupal\context\Plugin\DisplayVariantCode
public function setTitle($title) {
$this->title = $title;
return $this;
}