function amp_help in Accelerated Mobile Pages (AMP) 8.3
Same name and namespace in other branches
- 8 amp.module \amp_help()
- 8.2 amp.module \amp_help()
- 7 amp.module \amp_help()
Implements hook_help().
File
- ./
amp.module, line 19 - Provides functionality for handling AMP.
Code
function amp_help($route_name, RouteMatchInterface $route_match) {
switch ($route_name) {
// Main module help for the amp module.
case 'help.page.amp':
$output = '';
$output .= '<h3>' . t('About') . '</h3>';
$output .= '<p>' . t('Accelerated Mobile Pages (AMP) integration. Read about it online at <a href=":url">AMP Documentation</a>.', [
':url' => 'https://www.drupal.org/docs/8/modules/accelerated-mobile-pages-amp',
]) . '</p>';
return $output;
default:
}
}