TitleBlockPluginInterface.php 500 B

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