Skip to content
Snippets Groups Projects
Commit 8cc41927 authored by Lachlan Ennis's avatar Lachlan Ennis
Browse files

Merge branch '8.x-1.x' of git.drupal.org:project/captcha into 8.x-1.x

parents a5e98ec3 6ded6874
Branches
Tags
No related merge requests found
......@@ -131,14 +131,4 @@ function captcha_install() {
}
}
// Explain to users that page caching may be disabled.
$config = \Drupal::config('system.performance')->get('cache.page.use_internal');
if ($config != 0) {
drupal_set_message(\Drupal::translation()
->translate('Note that the CAPTCHA module disables <a href="@performance_admin">page caching</a> of pages that include a CAPTCHA challenge.',
[
'@performance_admin' => Url::fromUri('internal:/admin/config/development/performance')
->toString(),
]), 'warning');
}
}
......@@ -56,14 +56,17 @@ function captcha_help($route_name, RouteMatchInterface $route_match) {
':contenttypes' => \Drupal::url('entity.node_type.collection'),
]) . '</p>';
$output .= '<p>' . t('CAPTCHA is a trademark of Carnegie Mellon University.') . '</p>';
return $output;
return ['#markup' => $output];
case 'captcha_settings':
$output = '<p>' . t('A CAPTCHA can be added to virtually each Drupal form. Some default forms are already provided in the form list, but arbitrary forms can be easily added and managed when the option <em>Add CAPTCHA administration links to forms</em> is enabled.') . '</p>';
$output .= '<p>' . t('Users with the <em>Skip CAPTCHA</em> <a href=":perm">permission</a> won\'t be offered a challenge. Be sure to grant this permission to the trusted users (e.g. site administrators). If you want to test a protected form, be sure to do it as a user without the <em>Skip CAPTCHA</em> permission (e.g. as anonymous user).', [
':perm' => \Drupal::url('user.admin_permissions'),
]) . '</p>';
return $output;
$output .= '<p><b>' . t('Note that the CAPTCHA module disables <a href=":performancesettings">page caching</a> of pages that include a CAPTCHA challenge.', [
':performancesettings' => \Drupal::url('system.performance_settings'),
]) . '</b></p>';
return ['#markup' => $output];
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment