You are here

path_file.module in Path File 8

Contains path file hooks.

File

path_file.module
View source
<?php

/**
 * @file
 * Contains path file hooks.
 */
use Drupal\Core\Routing\RouteMatchInterface;
use Drupal\Core\Url;

/**
 * Implements hook_help().
 */
function path_file_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    case 'help.page.path_file':
      $output = '';
      $output .= '<h3>' . t('About') . '</h3>';
      $output .= '<p>' . t('The Path File module allows users to create, edit, and manage files as entities with configurable urls.  This allows admins to upload new versions of the file without changing the url.') . '</p>';
      $output .= '<h3>' . t('Uses') . '</h3>';
      $output .= '<dl>';
      $output .= '<dt>' . t('User permissions') . '</dt>';
      $output .= '<dd>' . t('The Path File module makes a number of permissions available for viewing, editing, and managing Path File entities, which can be set by role on the <a href=":permissions">permissions page</a>.', array(
        ':permissions' => Url::fromRoute('user.admin_permissions', array(), array(
          'fragment' => 'module-path_file',
        ))
          ->toString(),
      )) . '</dd>';
      $output .= '</dl>';
      return $output;
  }
}

Functions

Namesort descending Description
path_file_help Implements hook_help().