public function ErrorPageController::render in Apigee Edge 8
Builds the renderable array for page.html.twig using the module's config.
Return value
array The renderable array.
1 string reference to 'ErrorPageController::render'
File
- src/
Controller/ ErrorPageController.php, line 56
Class
- ErrorPageController
- Defines a controller for the configurable error page.
Namespace
Drupal\apigee_edge\ControllerCode
public function render() : array {
$build['content'] = [
'#type' => 'processed_text',
'#format' => $this->configFactory
->get('apigee_edge.error_page')
->get('error_page_content.format'),
'#text' => $this->configFactory
->get('apigee_edge.error_page')
->get('error_page_content.value'),
];
return $build;
}