interface TitleBlockPluginInterface in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Block/TitleBlockPluginInterface.php \Drupal\Core\Block\TitleBlockPluginInterface
- 9 core/lib/Drupal/Core/Block/TitleBlockPluginInterface.php \Drupal\Core\Block\TitleBlockPluginInterface
The interface for "title" blocks.
A title block shows the title returned by the controller.
Hierarchy
- interface \Drupal\Component\Plugin\ConfigurableInterface; interface \Drupal\Component\Plugin\DependentPluginInterface; interface \Drupal\Core\Plugin\PluginFormInterface; interface \Drupal\Component\Plugin\PluginInspectionInterface; interface \Drupal\Core\Cache\CacheableDependencyInterface; interface \Drupal\Component\Plugin\DerivativeInspectionInterface
- interface \Drupal\Core\Block\BlockPluginInterface
- interface \Drupal\Core\Block\TitleBlockPluginInterface
- interface \Drupal\Core\Block\BlockPluginInterface
Expanded class hierarchy of TitleBlockPluginInterface
All classes that implement TitleBlockPluginInterface
See also
\Drupal\Core\Render\Element\PageTitle
Related topics
3 files declare their use of TitleBlockPluginInterface
- BlockPageVariant.php in core/
modules/ block/ src/ Plugin/ DisplayVariant/ BlockPageVariant.php - BlockViewBuilder.php in core/
modules/ block/ src/ BlockViewBuilder.php - PageTitleBlock.php in core/
lib/ Drupal/ Core/ Block/ Plugin/ Block/ PageTitleBlock.php
File
- core/
lib/ Drupal/ Core/ Block/ TitleBlockPluginInterface.php, line 14
Namespace
Drupal\Core\BlockView source
interface TitleBlockPluginInterface extends BlockPluginInterface {
/**
* Sets the title.
*
* @param string|array $title
* The page title: either a string for plain titles or a render array for
* formatted titles.
*/
public function setTitle($title);
}