You are here

function pwa_permission in Progressive Web App 7.2

Same name and namespace in other branches
  1. 7 pwa.module \pwa_permission()

Implements hook_permission().

File

./pwa.module, line 20

Code

function pwa_permission() {
  return [
    'access pwa' => [
      'title' => t('Access Progressive Web App'),
    ],
    'administer pwa manifest' => [
      'title' => t('Administer Progressive Web App manifest configuration'),
    ],
    'administer pwa serviceworker' => [
      'title' => t('Administer Progressive Web App serviceworker configuration'),
      'restrict access' => TRUE,
    ],
  ];
}