function tfa_help in Two-factor Authentication (TFA) 8
Same name and namespace in other branches
- 6 tfa.module \tfa_help()
- 7.2 tfa.module \tfa_help()
- 7 tfa.module \tfa_help()
Implements hook_help().
File
- ./
tfa.module, line 17 - Contains tfa.module.
Code
function tfa_help($route_name, RouteMatchInterface $route_match) {
$output = '';
switch ($route_name) {
// Main module help for the tfa module.
case 'help.page.tfa':
$output .= '<h3>' . \Drupal::translation()
->translate('About') . '</h3>';
$output .= '<p>' . \Drupal::translation()
->translate('Pluggable provider of second factor authentication for Drupal. For more information, see the online documentation for the <a href=":tfa">Two-factor Authentication</a> module.', [
':tfa' => 'https://www.drupal.org/project/tfa',
]) . '</p>';
}
return $output;
}