You are here

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'
apigee_edge.routing.yml in ./apigee_edge.routing.yml
apigee_edge.routing.yml

File

src/Controller/ErrorPageController.php, line 56

Class

ErrorPageController
Defines a controller for the configurable error page.

Namespace

Drupal\apigee_edge\Controller

Code

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;
}