You are here

public function PWAController::pwa_module_active_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_module_active_page()

Phone home uninstall.

@package Applied from patch https://www.drupal.org/project/pwa/issues/2913023#comment-12819311.

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

File

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

Class

PWAController
Default controller for the pwa module.

Namespace

Drupal\pwa\Controller

Code

public function pwa_module_active_page() {
  return [
    '#tag' => 'h1',
    '#value' => 'PWA module is installed.',
    '#attributes' => [
      'data-drupal-pwa-active' => TRUE,
    ],
  ];
}