You are here

interface TitleBlockPluginInterface in Drupal 10

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

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\Block
View 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);

}

Members