You are here

public function StyleguideMaintenancePageController::page in Style Guide 8

Same name and namespace in other branches
  1. 2.x src/Controller/StyleguideMaintenancePageController.php \Drupal\styleguide\Controller\StyleguideMaintenancePageController::page()

Builds Drupal maintenance page.

Return value

array The rendered HTML response.

1 string reference to 'StyleguideMaintenancePageController::page'
styleguide.routing.yml in ./styleguide.routing.yml
styleguide.routing.yml

File

src/Controller/StyleguideMaintenancePageController.php, line 58

Class

StyleguideMaintenancePageController
The Styleguide maintainers page controller.

Namespace

Drupal\styleguide\Controller

Code

public function page() {
  $content = $this->generator
    ->paragraphs();
  $title = $this->generator
    ->sentence();
  return $this->bareHtmlPageRenderer
    ->renderBarePage($content, $title, 'maintenance_page');
}