function TitleBlockPluginInterface::setTitle
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Block/TitleBlockPluginInterface.php \Drupal\Core\Block\TitleBlockPluginInterface::setTitle()
- 10 core/lib/Drupal/Core/Block/TitleBlockPluginInterface.php \Drupal\Core\Block\TitleBlockPluginInterface::setTitle()
- 11.x 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\BlockCode
public function setTitle($title);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.