function HelpTopicsTestHooks::help
Same name and namespace in other branches
- 11.x core/modules/help/tests/modules/help_topics_test/src/Hook/HelpTopicsTestHooks.php \Drupal\help_topics_test\Hook\HelpTopicsTestHooks::help()
Implements hook_help().
Attributes
#[Hook('help')]
File
-
core/
modules/ help/ tests/ modules/ help_topics_test/ src/ Hook/ HelpTopicsTestHooks.php, line 18
Class
- HelpTopicsTestHooks
- Hook implementations for help_topics_test.
Namespace
Drupal\help_topics_test\HookCode
public function help($route_name, RouteMatchInterface $route_match) : ?string {
switch ($route_name) {
case 'help.page.help_topics_test':
return 'Some kind of non-empty output for testing';
}
return NULL;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.