function autoban_help in Automatic IP ban (Autoban) 8
Same name and namespace in other branches
- 7 autoban.module \autoban_help()
Implements hook_help().
File
- ./
autoban.module, line 15 - Autoban entity type configuration.
Code
function autoban_help($route_name, RouteMatchInterface $route_match) {
switch ($route_name) {
case 'help.page.autoban':
$output = '';
$output .= '<h3>' . t('About') . '</h3>';
$output .= '<p>' . t('Autoban allows to automatize IP ban using watchdog table by the module rules.') . '</p>';
$output .= '<h3>' . t('Uses') . '</h3>';
$output .= '<dl>';
$output .= '<dt>' . t('Analyze <a href=":dblog">watchdog table</a> manually or using <a href=":analyze">analyze page</a>. Go to the test page during analysis.', [
':dblog' => Url::fromRoute('dblog.overview')
->toString(),
':analyze' => Url::fromRoute('autoban.analyze')
->toString(),
]) . '</dt>';
$output .= '<dt>' . t('Go to the <a href=":config">autoban config page</a>.', [
':config' => Url::fromRoute('autoban.settings')
->toString(),
]) . '</dt>';
return $output;
}
}