function system_test_help

Same name in other branches
  1. 8.9.x core/modules/system/tests/modules/system_test/system_test.module \system_test_help()
  2. 10 core/modules/system/tests/modules/system_test/system_test.module \system_test_help()
  3. 11.x 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

Code

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;
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.