function SystemTestHooks::help

Implements hook_help().

File

core/modules/system/tests/modules/system_test/src/Hook/SystemTestHooks.php, line 19

Class

SystemTestHooks
Hook implementations for system_test.

Namespace

Drupal\system_test\Hook

Code

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

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