class BareHtmlPageRenderer implements BareHtmlPageRendererInterface (View source)

Default bare HTML page renderer.

Properties

protected Renderer $renderer

The renderer service.

protected AttachmentsResponseProcessorInterface $htmlResponseAttachmentsProcessor

The HTML response attachments processor service.

Methods

__construct(RendererInterface $renderer, AttachmentsResponseProcessorInterface $html_response_attachments_processor)

Constructs a new BareHtmlPageRenderer.

renderBarePage(array $content, string $title, string $page_theme_property, array $page_additions = [])

Renders a bare page.

Details

__construct(RendererInterface $renderer, AttachmentsResponseProcessorInterface $html_response_attachments_processor)

Constructs a new BareHtmlPageRenderer.

Parameters

RendererInterface $renderer

The renderer service.

AttachmentsResponseProcessorInterface $html_response_attachments_processor

The HTML response attachments processor service.

HtmlResponse renderBarePage(array $content, string $title, string $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

HtmlResponse

The rendered HTML response, ready to be sent.