Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 5 |
PageTitle | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 5 |
getInfo | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 5 |
<?php | |
/** | |
* @file | |
* Contains \Drupal\Core\Render\Element\PageTitle. | |
*/ | |
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, | |
]; | |
} | |
} |