From 78417a7a53b03ee2da517576b26c2ecfdb82e44c Mon Sep 17 00:00:00 2001
From: phenaproxima <phenaproxima@205645.no-reply.drupal.org>
Date: Fri, 7 Jan 2022 19:06:51 +0000
Subject: [PATCH] Issue #3257473 by phenaproxima: Package Manager must
 implement hook_help()

---
 package_manager/package_manager.module | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)
 create mode 100644 package_manager/package_manager.module

diff --git a/package_manager/package_manager.module b/package_manager/package_manager.module
new file mode 100644
index 0000000000..31ff3ac7d7
--- /dev/null
+++ b/package_manager/package_manager.module
@@ -0,0 +1,23 @@
+<?php
+
+/**
+ * @file
+ * Contains hook implementations for Package Manager.
+ */
+
+use Drupal\Core\Routing\RouteMatchInterface;
+
+/**
+ * Implements hook_help().
+ */
+function package_manager_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.package_manager':
+      $output = '<h3>' . t('About') . '</h3>';
+      $output .= '<p>' . t('Package Manager is an API for installing and updating Drupal core and contributed modules.') . '</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;
+  }
+}
-- 
GitLab