You are here

function no_autocomplete_help in No Autocomplete 8

Same name and namespace in other branches
  1. 7 no_autocomplete.module \no_autocomplete_help()

Implements hook_help().

File

./no_autocomplete.module, line 26
No_autocomplete.module.

Code

function no_autocomplete_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {

    // Main module help.
    case 'help.page.no_autocomplete':
      $output = '';
      $output .= '<h3>' . t('About') . '</h3>';
      $output .= '<p>' . t('The No Autocomplete module adds the autocomplete=off attribute to selected key user forms. On a browser that respects this setting, it means that the browser will not try to autocomplete the password on the user login forms.') . '</p>';
      $output .= '<h3>' . t('Uses') . '</h3>';
      $output .= '<dl>';
      $output .= '<dt>' . t('Configuring the module') . '</dt>';
      $output .= '<dd>' . t("To configure the module visit the <a href=':config-page'>No Autocomplete</a> page, <em>check</em> which feature you'd like to enable and save the configuration. For this you need the <em>Administer No Autocomplete</em> permission.", [
        ':config-page' => Url::fromRoute('no_autocomplete.admin_settings_form')
          ->toString(),
      ]) . '</dd>';
      $output .= '</dl>';
      return $output;
  }
}