function pwa_a2hs_help in Progressive Web App 8
Implements hook_help().
File
- modules/
pwa_a2hs/ pwa_a2hs.module, line 13 - Contains pwa_a2hs.module.
Code
function pwa_a2hs_help($route_name, RouteMatchInterface $route_match) {
switch ($route_name) {
// Main module help for the pwa_a2hs module.
case 'help.page.pwa_a2hs':
$output = '';
$output .= '<h3>' . t('About') . '</h3>';
$output .= '<p>' . t('This module provides a block with a button to promt users to add the app to their home screen.') . '</p>';
$output .= '<p>' . t('The block and/or button will show when your website meets all of the requirements of a PWA, is installable by the current browser, and the beforeinstallprompt event is triggered.') . '</p>';
return $output;
default:
}
}