function help_topics_help
Same name in other branches
- 9 core/modules/help_topics/help_topics.module \help_topics_help()
- 8.9.x core/modules/help_topics/help_topics.module \help_topics_help()
- 11.x core/modules/help_topics/help_topics.module \help_topics_help()
Implements hook_help().
File
-
core/
modules/ help_topics/ help_topics.module, line 14
Code
function help_topics_help($route_name, RouteMatchInterface $route_match) {
if ($route_name == 'help.page.help_topics') {
$help_home = Url::fromRoute('help.main')->toString();
$output = '<h2>' . t('About') . '</h2>';
$output .= '<p>' . t('The Help Topics module has been moved to the Help module.') . '</p>';
$output .= '<p>' . t('See the <a href=":help_page">Help page</a> to view topics.', [
':help_page' => $help_home,
]) . '</p>';
return [
'#markup' => $output,
];
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.