You are here

function pwa_module_active in Progressive Web App 7

Same name and namespace in other branches
  1. 7.2 pwa.pages.inc \pwa_module_active()

Route to confirm for SW that module is still active.

Return value

string

1 string reference to 'pwa_module_active'
pwa_menu in ./pwa.module
Implements hook_menu().

File

./pwa.pages.inc, line 62

Code

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