You are here

public function TitleBlockPluginInterface::setTitle in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Block/TitleBlockPluginInterface.php \Drupal\Core\Block\TitleBlockPluginInterface::setTitle()
  2. 10 core/lib/Drupal/Core/Block/TitleBlockPluginInterface.php \Drupal\Core\Block\TitleBlockPluginInterface::setTitle()

Sets the title.

Parameters

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

1 method overrides TitleBlockPluginInterface::setTitle()
PageTitleBlock::setTitle in core/lib/Drupal/Core/Block/Plugin/Block/PageTitleBlock.php
Sets the title.

File

core/lib/Drupal/Core/Block/TitleBlockPluginInterface.php, line 23

Class

TitleBlockPluginInterface
The interface for "title" blocks.

Namespace

Drupal\Core\Block

Code

public function setTitle($title);