interface TitleBlockPluginInterface
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Block/TitleBlockPluginInterface.php \Drupal\Core\Block\TitleBlockPluginInterface
- 10 core/lib/Drupal/Core/Block/TitleBlockPluginInterface.php \Drupal\Core\Block\TitleBlockPluginInterface
- 8.9.x 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\Component\Plugin\DerivativeInspectionInterface; interface \Drupal\Component\Plugin\PluginInspectionInterface; interface \Drupal\Core\Cache\CacheableDependencyInterface; interface \Drupal\Core\Plugin\PluginFormInterface
- interface \Drupal\Core\Block\BlockPluginInterface extends \Drupal\Component\Plugin\ConfigurableInterface, \Drupal\Component\Plugin\DependentPluginInterface, \Drupal\Core\Plugin\PluginFormInterface, \Drupal\Component\Plugin\PluginInspectionInterface, \Drupal\Core\Cache\CacheableDependencyInterface, \Drupal\Component\Plugin\DerivativeInspectionInterface
- interface \Drupal\Core\Block\TitleBlockPluginInterface extends \Drupal\Core\Block\BlockPluginInterface
- interface \Drupal\Core\Block\BlockPluginInterface extends \Drupal\Component\Plugin\ConfigurableInterface, \Drupal\Component\Plugin\DependentPluginInterface, \Drupal\Core\Plugin\PluginFormInterface, \Drupal\Component\Plugin\PluginInspectionInterface, \Drupal\Core\Cache\CacheableDependencyInterface, \Drupal\Component\Plugin\DerivativeInspectionInterface
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);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.