W3cubDocs

/Drupal 8

public function BareHtmlPageRendererInterface::renderBarePage

public BareHtmlPageRendererInterface::renderBarePage(array $content, $title, $page_theme_property, array $page_additions = [])

Renders a bare page.

Parameters

array $content: The main content to render in the 'content' region.

string $title: The title for this maintenance page.

string $page_theme_property: The #theme property to set on #type 'page'.

array $page_additions: Additional regions to add to the page. May also be used to pass the #show_messages property for #type 'page'.

Return value

\Drupal\Core\Render\HtmlResponse The rendered HTML response, ready to be sent.

File

core/lib/Drupal/Core/Render/BareHtmlPageRendererInterface.php, line 60

Class

BareHtmlPageRendererInterface
Bare HTML page renderer.

Namespace

Drupal\Core\Render

Code

public function renderBarePage(array $content, $title, $page_theme_property, array $page_additions = []);

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Render!BareHtmlPageRendererInterface.php/function/BareHtmlPageRendererInterface::renderBarePage/8.1.x