1<?php
2
3namespace Drupal\Core\Block;
4
5/**
6 * The interface for "title" blocks.
7 *
8 * A title block shows the title returned by the controller.
9 *
10 * @ingroup block_api
11 *
12 * @see \Drupal\Core\Render\Element\PageTitle
13 */
14interface TitleBlockPluginInterface extends BlockPluginInterface {
15
16  /**
17   * Sets the title.
18   *
19   * @param string|array $title
20   *   The page title: either a string for plain titles or a render array for
21   *   formatted titles.
22   */
23  public function setTitle($title);
24
25}
26