PageTitle.php 498 B

1234567891011121314151617181920212223242526
  1. <?php
  2. namespace Drupal\Core\Render\Element;
  3. /**
  4. * Provides a render element for the title of an HTML page.
  5. *
  6. * This represents the title of the HTML page's body.
  7. *
  8. * @RenderElement("page_title")
  9. */
  10. class PageTitle extends RenderElement {
  11. /**
  12. * {@inheritdoc}
  13. */
  14. public function getInfo() {
  15. return [
  16. '#theme' => 'page_title',
  17. // The page title: either a string for plain titles or a render array for
  18. // formatted titles.
  19. '#title' => NULL,
  20. ];
  21. }
  22. }