You are here

public function PWAController::pwa_offline_page in Progressive Web App 8

Same name and namespace in other branches
  1. 2.x src/Controller/PWAController.php \Drupal\pwa\Controller\PWAController::pwa_offline_page()

Provide a render array for offline pages.

Return value

array The render array.

1 string reference to 'PWAController::pwa_offline_page'
pwa.routing.yml in ./pwa.routing.yml
pwa.routing.yml

File

src/Controller/PWAController.php, line 288
Replace values in serviceworker.js

Class

PWAController
Default controller for the pwa module.

Namespace

Drupal\pwa\Controller

Code

public function pwa_offline_page() {
  return [
    '#theme' => 'offline',
  ];
}