Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x

PageTitle.php

Namespace

Drupal\Core\Render\Element

File

core/lib/Drupal/Core/Render/Element/PageTitle.php

View source
<?php

namespace Drupal\Core\Render\Element;

use Drupal\Core\Render\Attribute\RenderElement;

/**
 * Provides a render element for the title of an HTML page.
 *
 * This represents the title of the HTML page's body.
 */
class PageTitle extends RenderElementBase {
    
    /**
     * {@inheritdoc}
     */
    public function getInfo() {
        return [
            '#theme' => 'page_title',
            // The page title: either a string for plain titles or a render array for
            // formatted titles.
'#title' => NULL,
        ];
    }

}

Classes

Title Deprecated Summary
PageTitle Provides a render element for the title of an HTML page.

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal