You are here

function pagerer_help in Pagerer 8.2

Same name and namespace in other branches
  1. 8 pagerer.module \pagerer_help()
  2. 7 pagerer.module \pagerer_help()

Implements hook_help().

File

./pagerer.module, line 15
Pagerer.

Code

function pagerer_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    case 'entity.pagerer_preset.collection':
      return '<p>' . t("Pagerer allows to pre-define multiple pager configurations.") . '</p>';
    case 'entity.pagerer_preset.edit_form':
      return '<p>' . t("Select a Pagerer style for each of the left, center and right panes. Each pane can be further configured clicking the appropriate action button.") . '</p>';
    case 'pagerer.url_settings':
      $output = '<p>' . t("Pagerer allows replacing the standard <kbd>page</kbd> querystring parameter in URLs with its own version. That can also allow starting the page count from 1 rather than from 0 in URLs.") . '</p>';
      $output .= '<dt>' . t('<b>Example</b>') . '</dt>';
      $output .= '<dd>' . t("Select the <em>URL querystring</em> checkbox, and <em>One-based</em> from <em>Page index base</em>. This will turn a <kbd>?page=0</kbd> pager URL into <kbd>?pg=1</kbd>.") . '</dd>';
      return $output;
  }
}