From 45eb12cd0ae6e3936c1eff2826076c3ce253225d Mon Sep 17 00:00:00 2001 From: tedbow <tedbow@240860.no-reply.drupal.org> Date: Thu, 9 Dec 2021 16:26:42 +0000 Subject: [PATCH] Issue #3253400 by tedbow: Add hook_help --- automatic_updates.module | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/automatic_updates.module b/automatic_updates.module index d4d4ba3bbb..ba246224e3 100644 --- a/automatic_updates.module +++ b/automatic_updates.module @@ -5,6 +5,7 @@ * Contains hook implementations for Automatic Updates. */ +use Drupal\Core\Routing\RouteMatchInterface; use Drupal\automatic_updates\CronUpdater; use Drupal\automatic_updates\UpdateRecommender; use Drupal\automatic_updates\Validation\AdminReadinessMessages; @@ -13,6 +14,21 @@ use Drupal\Core\Form\FormStateInterface; use Drupal\Core\Url; 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(). */ -- GitLab