You are here

function path_alias_xt_help in Extended Path Aliases 8

Same name and namespace in other branches
  1. 6 path_alias_xt.module \path_alias_xt_help()
  2. 7 path_alias_xt.module \path_alias_xt_help()

Implements hook_help().

File

./path_alias_xt.module, line 14
Extended Path Aliases.

Code

function path_alias_xt_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    case 'help.page.path_alias_xt':
      $output = '<p>';
      $output .= t('Installation instructions are in the README.txt file. Further documentation is on the <a href="@path_alias_xt">Extended Path Aliases</a> project page.', [
        '@path_alias_xt' => Url::fromUri('http://drupal.org/project/path_alias_xt')
          ->toString(),
      ]);
      $output .= '</p>';
      return [
        '#markup' => $output,
      ];
  }
}