Skip to content
Snippets Groups Projects
Commit 45eb12cd authored by Ted Bowman's avatar Ted Bowman
Browse files

Issue #3253400 by tedbow: Add hook_help

parent c342fe44
No related branches found
No related tags found
1 merge request!141Issue #3253400: Add hook_help
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
* Contains hook implementations for Automatic Updates. * Contains hook implementations for Automatic Updates.
*/ */
use Drupal\Core\Routing\RouteMatchInterface;
use Drupal\automatic_updates\CronUpdater; use Drupal\automatic_updates\CronUpdater;
use Drupal\automatic_updates\UpdateRecommender; use Drupal\automatic_updates\UpdateRecommender;
use Drupal\automatic_updates\Validation\AdminReadinessMessages; use Drupal\automatic_updates\Validation\AdminReadinessMessages;
...@@ -13,6 +14,21 @@ use Drupal\Core\Form\FormStateInterface; ...@@ -13,6 +14,21 @@ use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Url; use Drupal\Core\Url;
use Drupal\update\ProjectSecurityData; use Drupal\update\ProjectSecurityData;
/**
* Implements hook_help().
*/
function automatic_updates_help($route_name, RouteMatchInterface $route_match) {
// @todo Fully document all the modules features in
// https://www.drupal.org/i/3253591.
switch ($route_name) {
case 'help.page.auto_updates':
$output = '<h3>' . t('About') . '</h3>';
$output .= '<p>' . t('Automatic Updates lets you update Drupal core.') . '</p>';
$output .= '<p>' . t('For more information, see the <a href=":automatic-updates-documentation">online documentation for the Automatic Updates module</a>.', [':automatic-updates-documentation' => 'https://www.drupal.org/docs/8/update/automatic-updates']) . '</p>';
return $output;
}
}
/** /**
* Implements hook_page_top(). * Implements hook_page_top().
*/ */
......
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