summaryrefslogtreecommitdiffstats
path: root/core/modules/system/tests/modules/system_test/system_test.module
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/system/tests/modules/system_test/system_test.module')
-rw-r--r--core/modules/system/tests/modules/system_test/system_test.module14
1 files changed, 14 insertions, 0 deletions
diff --git a/core/modules/system/tests/modules/system_test/system_test.module b/core/modules/system/tests/modules/system_test/system_test.module
index fb1538d..eef3516 100644
--- a/core/modules/system/tests/modules/system_test/system_test.module
+++ b/core/modules/system/tests/modules/system_test/system_test.module
@@ -1,6 +1,20 @@
<?php
use Drupal\Core\Extension\Extension;
+use Drupal\Core\Routing\RouteMatchInterface;
+
+/**
+ * Implements hook_help().
+ */
+function system_test_help($route_name, RouteMatchInterface $route_match) {
+ switch ($route_name) {
+ case 'help.page.system_test':
+ $output = '';
+ $output .= '<h3>' . t('Test Help Page') . '</h3>';
+ $output .= '<p>' . t('This is a test help page for the system_test module for the purpose of testing if the "Help" link displays properly.') . '</p>';
+ return $output;
+ }
+}
/**
* Implements hook_modules_installed().