Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
file_delete_ui
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
file_delete_ui
Commits
73516a77
Unverified
Commit
73516a77
authored
1 year ago
by
Noorul Shameera
Committed by
Doug Green
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3336798
by noorulshameera: Implement hook_help()
parent
571aaf0d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
file_delete_ui.module
+29
-0
29 additions, 0 deletions
file_delete_ui.module
with
29 additions
and
0 deletions
file_delete_ui.module
+
29
−
0
View file @
73516a77
<?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().
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment