public function StyleguideMaintenancePageController::page in Style Guide 8
Same name and namespace in other branches
- 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'
File
- src/
Controller/ StyleguideMaintenancePageController.php, line 58
Class
- StyleguideMaintenancePageController
- The Styleguide maintainers page controller.
Namespace
Drupal\styleguide\ControllerCode
public function page() {
$content = $this->generator
->paragraphs();
$title = $this->generator
->sentence();
return $this->bareHtmlPageRenderer
->renderBarePage($content, $title, 'maintenance_page');
}