function more_help_page_test_help in Drupal 10
Same name and namespace in other branches
- 8 core/modules/help/tests/modules/more_help_page_test/more_help_page_test.module \more_help_page_test_help()
- 9 core/modules/help/tests/modules/more_help_page_test/more_help_page_test.module \more_help_page_test_help()
Implements hook_help().
File
- core/
modules/ help/ tests/ modules/ more_help_page_test/ more_help_page_test.module, line 13 - More Help Page Test module to test the help blocks.
Code
function more_help_page_test_help($route_name, RouteMatchInterface $route_match) {
switch ($route_name) {
// Return help for the same route as the help_page_test module.
case 'help_page_test.test_array':
return [
'#markup' => 'Help text from more_help_page_test_help module.',
];
}
}