You are here

public function TitleBlockPluginInterface::setTitle in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Block/TitleBlockPluginInterface.php \Drupal\Core\Block\TitleBlockPluginInterface::setTitle()
  2. 9 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.

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);