You are here

public function PageTitleBlock::setTitle in Zircon Profile 8

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

Sets the title.

Parameters

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

Overrides TitleBlockPluginInterface::setTitle

File

core/lib/Drupal/Core/Block/Plugin/Block/PageTitleBlock.php, line 33
Contains \Drupal\Core\Block\Plugin\Block\PageTitleBlock.

Class

PageTitleBlock
Provides a block to display the page title.

Namespace

Drupal\Core\Block\Plugin\Block

Code

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