function TestPageTitleMainContentAndMessagesBlock::setTitle
Same name and namespace in other branches
- main core/modules/block/tests/modules/block_test/src/Plugin/Block/TestPageTitleMainContentAndMessagesBlock.php \Drupal\block_test\Plugin\Block\TestPageTitleMainContentAndMessagesBlock::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/
modules/ block/ tests/ modules/ block_test/ src/ Plugin/ Block/ TestPageTitleMainContentAndMessagesBlock.php, line 62
Class
- TestPageTitleMainContentAndMessagesBlock
- Provides a block which includes page title, main content & messages together.
Namespace
Drupal\block_test\Plugin\BlockCode
public function setTitle($title) : static {
$this->title = $title;
$this->isPageTitlePlaced = TRUE;
return $this;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.