You are here

path_alias_xt.module in Extended Path Aliases 8

Same filename and directory in other branches
  1. 6 path_alias_xt.module
  2. 7 path_alias_xt.module

Extended Path Aliases.

File

path_alias_xt.module
View source
<?php

/**
 * @file
 * Extended Path Aliases.
 */
use Drupal\Core\Routing\RouteMatchInterface;
use Drupal\Core\Url;

/**
 * Implements hook_help().
 */
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,
      ];
  }
}

Functions

Namesort descending Description
path_alias_xt_help Implements hook_help().