function simple_recaptcha_help in Simple Google reCAPTCHA 8
Implements hook_help().
File
- ./
simple_recaptcha.module, line 53 - Provides common hooks and functions for simple_google_recaptcha module.
Code
function simple_recaptcha_help($route_name, RouteMatchInterface $arg) {
switch ($route_name) {
case 'help.page.simple_recaptcha':
$output = '';
$output .= '<h3>' . t('About') . '</h3>';
$output .= '<p>' . t('This Drupal 8 module provides reCAPTCHA v2 integration, it is crafted to work with different caching strategies, with multiple forms displayed on the same page.') . '</p>';
// Add a link to the Drupal.org project.
$output .= '<p>';
$output .= t('Visit the <a href=":project_link">Simple Google reCaptcha project pages</a> on Drupal.org for more information.', [
':project_link' => Url::fromUri('https://www.drupal.org/project/simple_recaptcha')
->toString(),
]);
$output .= '</p>';
return $output;
}
}