function freelinking_help in Freelinking 4.0.x
Same name and namespace in other branches
- 8.3 freelinking.module \freelinking_help()
- 7.3 freelinking.module \freelinking_help()
Implements hook_help().
1 call to freelinking_help()
- AdvancedHelpHintTest::testHookHelp in tests/
src/ Kernel/ AdvancedHelpHintTest.php - Asserts hook_help() is functional.
File
- ./
freelinking.module, line 13 - Provides flexible, extensible, wiki-style linking of content.
Code
function freelinking_help($route_name, RouteMatchInterface $route_match) {
$hint = '';
if ($route_name === 'help.page.freelinking') {
if (\Drupal::hasService('advanced_help_hint.gethint')) {
/** @var \Drupal\advanced_help_hint\Hint $hintService */
$hintService = \Drupal::service('advanced_help_hint.gethint');
$hint = '<p>' . $hintService
->produceHint('freelinking', 'https://www.drupal.org/docs/8/modules/freelinking', TRUE) . '</p>';
}
return '<p>' . t('This module is a filter to turn wiki-style links into HTML links.') . '</p>' . $hint;
}
}