Skip to content
Snippets Groups Projects
Commit 7ff80bfa authored by Viktor Holovachek's avatar Viktor Holovachek
Browse files

Issue #3424823 - Implement hook help

parent 86168af0
No related branches found
No related tags found
1 merge request!5Issue #3424823 - Implement hook help
Pipeline #107726 passed with warnings
......@@ -6,6 +6,21 @@
*/
use Drupal\browscap\BrowscapEndpoint;
use Drupal\Core\Routing\RouteMatchInterface;
/**
* Implements hook_help().
*/
function browscap_help($route_name, RouteMatchInterface $route_match) {
switch ($route_name) {
case 'help.page.browscap':
$output = '';
$output .= '<h3>' . t('About') . '</h3>';
$output .= '<p>' . t("Browscap provides an improved version of PHP's get_browser() function.") . '</p>';
$output .= '<p>' . t('Browscap automates maintenance by storing browser data in a database and automatically retrieving the latest data on a configurable schedule.') . '</p>';
return $output;
}
}
/**
* Implements hook_cron().
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment