You are here

function pwa_offline_page in Progressive Web App 7

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

Default page when for when the user has no connection.

@todo template like maintenance page?

Return value

string

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

File

./pwa.pages.inc, line 45

Code

function pwa_offline_page() {
  return [
    '#theme' => 'html_tag',
    '#tag' => 'h1',
    '#value' => 'You are offline.',
    '#attributes' => [
      'data-drupal-pwa-offline' => TRUE,
    ],
  ];
}