function suggestion_help in Autocomplete Search Suggestions 8
Same name and namespace in other branches
- 8.2 suggestion.module \suggestion_help()
- 7 suggestion.module \suggestion_help()
- 3.0.x suggestion.module \suggestion_help()
Implements hook_help().
File
- ./
suggestion.module, line 40 - Contains suggestion.module.
Code
function suggestion_help($route_name, CurrentRouteMatch $route_match) {
$x = [
'```php' => '<code>',
'```' => '</code>',
"\n" => "\n<br />",
];
switch ($route_name) {
case 'help.page.suggestion':
$txt = file_get_contents(drupal_get_path('module', 'suggestion') . '/README.md');
return str_replace(array_keys($x), array_values($x), Html::escape($txt));
}
return '';
}