Same name and namespace in other branches
  1. 8.9.x core/modules/system/tests/modules/system_test/system_test.module \system_test_help()
  2. 9 core/modules/system/tests/modules/system_test/system_test.module \system_test_help()

Implements hook_help().

1 string reference to 'system_test_help'
DrupalFlushAllCachesTest::testDrupalFlushAllCachesModuleList in core/tests/Drupal/KernelTests/Core/Common/DrupalFlushAllCachesTest.php
Tests that drupal_flush_all_caches() uses core.extension properly.

File

core/modules/system/tests/modules/system_test/system_test.module, line 14
Test module.

Code

function system_test_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    case 'help.page.system_test':
      $output = '';
      $output .= '<h2>' . t('Test Help Page') . '</h2>';
      $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;
  }
}