You are here

function views_node_access_filter_help in Views Node Access Filter 8

Implements hook_help().

File

./views_node_access_filter.module, line 73

Code

function views_node_access_filter_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    case 'help.page.views_node_access_filter':
      $output = '';
      $output .= '<h3>' . t('About') . '</h3>';
      $output .= '<p>' . t('This module provides a Views filter to only show the nodes that the current user is allowed to edit. This is typically useful as an UX improvement for editors on the /admin/content page.') . '</p>';
      $output .= '<p>' . t('Note: because of the way core deals with node access (for performance reasons), this module may not take into account some node access modules which change the update access without updating the node access registry.') . '</p>';

      // Add a link to the Drupal.org project.
      $output .= '<p>';
      $output .= t('Visit the <a href=":project_link">Views Node Access Filter project pages</a> on Drupal.org for more information.', [
        ':project_link' => 'https://www.drupal.org/project/views_node_access_filter',
      ]);
      $output .= '</p>';
      return $output;
    default:
  }
}