interface PageOutputInterface (View source)

Where a controller's pages go: the themed chrome and body in production (PageRenderer), a recorder in tests. A controller hands over the template and the parameters exactly as it built them.

Methods

void
renderPage(string $template, array $params, array $requestData, string $pageTitle, array|null $systemMessages, array|null $scriptMessages)

A full page: the chrome, then $template rendered with $params.

void
renderChrome(array $requestData, string $pageTitle, array|null $systemMessages)

The chrome alone, which is how an error page shows its system messages.

Details

void renderPage(string $template, array $params, array $requestData, string $pageTitle, array|null $systemMessages, array|null $scriptMessages)

A full page: the chrome, then $template rendered with $params.

Parameters

string $template
array $params

The template variables as the controller built them

array $requestData

The request data, read for the current page marker

string $pageTitle
array|null $systemMessages

Messages flashed for every page

array|null $scriptMessages

Messages flashed for this page

Return Value

void

void renderChrome(array $requestData, string $pageTitle, array|null $systemMessages)

The chrome alone, which is how an error page shows its system messages.

Parameters

array $requestData
string $pageTitle
array|null $systemMessages

Return Value

void