public function PWAController::pwa_offline_page in Progressive Web App 8
Same name and namespace in other branches
- 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'
File
- src/
Controller/ PWAController.php, line 288 - Replace values in serviceworker.js
Class
- PWAController
- Default controller for the pwa module.
Namespace
Drupal\pwa\ControllerCode
public function pwa_offline_page() {
return [
'#theme' => 'offline',
];
}