You are here

function path_file_help in Path File 8

Implements hook_help().

File

./path_file.module, line 14
Contains path file hooks.

Code

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;
  }
}