You are here

function cronkeychange_help in Cron key change 8

Same name and namespace in other branches
  1. 7 cronkeychange.module \cronkeychange_help()
  2. 2.x cronkeychange.module \cronkeychange_help()

Implements hook_help().

File

./cronkeychange.module, line 51
Cron Key Change.

Code

function cronkeychange_help($route_name, RouteMatchInterface $arg) {
  switch ($route_name) {
    case 'help.page.cronkeychange':
      $output = '';
      $output .= '<h3>' . t('About') . '</h3>';
      $output .= '<p>' . t('Cron key change is a module that adds various utility functions for the Drupal cron system. This module helps to generate a new cron key. This might be a useful utility module for anyone who has reason to believe their cron key has been accidentally disclosed. Drush command <strong><em>drush cronkeychange</strong></em> is available to display the newly generated cron key.') . '</p>';
      $output .= '<h3>' . t('Uses') . '</h3>';
      $output .= '<dt>' . t('Configuring Cron key change') . '</dt>';
      $output .= '<dd>' . t('On the Cron page, you can <a href=":cron-keygen#edit-cronkeychange">generate the new cron key</a>', [
        ':cron-keygen' => Url::fromRoute('system.cron_settings')
          ->toString(),
      ]) . '</dd>';

      // Add a link to the Drupal.org project.
      $output .= '<p>';
      $output .= t('Visit the <a href=":project_link">Cron key change project page</a> on Drupal.org for more information.', [
        ':project_link' => 'https://www.drupal.org/project/cronkeychange',
      ]);
      $output .= '</p>';
      return $output;
  }
}