PageTitle.php

Same filename in other branches
  1. 9 core/lib/Drupal/Core/Render/Element/PageTitle.php
  2. 10 core/lib/Drupal/Core/Render/Element/PageTitle.php
  3. 11.x core/lib/Drupal/Core/Render/Element/PageTitle.php

Namespace

Drupal\Core\Render\Element

File

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

View source
<?php

namespace Drupal\Core\Render\Element;


/**
 * Provides a render element for the title of an HTML page.
 *
 * This represents the title of the HTML page's body.
 *
 * @RenderElement("page_title")
 */
class PageTitle extends RenderElement {
    
    /**
     * {@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.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.