Skip to content
Snippets Groups Projects
Unverified Commit 73516a77 authored by Noorul Shameera's avatar Noorul Shameera Committed by Doug Green
Browse files

Issue #3336798 by noorulshameera: Implement hook_help()

parent 571aaf0d
No related branches found
No related tags found
No related merge requests found
<?php <?php
/**
* @file
*/
use Drupal\Core\Entity\EntityListBuilder; use Drupal\Core\Entity\EntityListBuilder;
use Drupal\file_delete_ui\FileAccessControlHandler; use Drupal\file_delete_ui\FileAccessControlHandler;
use Drupal\Core\Routing\RouteMatchInterface;
/**
* Implements hook_help().
*/
function file_delete_ui_help($route_name, RouteMatchInterface $route_match) {
switch ($route_name) {
case 'help.page.file_delete_ui':
$output = '';
$output .= '<h3>' . t('About') . '</h3>';
$output .= '<p>' . t('This module adds the capability to delete files from the file admin view (UI).
It assumes that the admin knows what they are doing and trusts that when they want to delete a file
(even one with a non zero usage count) that they really want to remove the file. When removing files
that are referenced by other entities, core takes care of removing the reference.') . '</p>';
// Add a link to the Drupal.org project.
$output .= '<p>';
$output .= t('Visit the <a href=":project_link">File Delete UI project page</a> on Drupal.org for more information.',
[
':project_link' => 'https://www.drupal.org/project/file_delete_ui',
]
);
$output .= '</p>';
return $output;
}
}
/** /**
* Implements hook_entity_type_alter(). * Implements hook_entity_type_alter().
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment