Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
group_permissions
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
group_permissions
Merge requests
!18
Hook help
Code
Review changes
Check out branch
Download
Patches
Plain diff
Open
Hook help
issue/group_permissions-3339551:Hook-help
into
2.0.x
Overview
0
Commits
1
Pipelines
0
Changes
1
Open
Elber Rodrigues
requested to merge
issue/group_permissions-3339551:Hook-help
into
2.0.x
2 years ago
Overview
0
Commits
1
Pipelines
0
Changes
1
Expand
0
0
Merge request reports
Compare
2.0.x
2.0.x (HEAD)
and
latest version
latest version
79399a5c
1 commit,
2 years ago
1 file
+
15
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
group_permissions.module
+
15
−
0
Options
@@ -5,8 +5,23 @@
* Hooks for handling group_permissions module features.
*/
use
Drupal\Core\Routing\RouteMatchInterface
;
use
Drupal\group\Entity\GroupInterface
;
/**
* Implements hook help.
*/
function
group_permissions_help
(
$route_name
,
RouteMatchInterface
$route_match
)
{
switch
(
$route_name
)
{
case
'help.page.group_permissions'
:
$path
=
__DIR__
.
'/README.md'
;
if
(
file_exists
(
$path
))
{
return
'<pre>'
.
file_get_contents
(
$path
)
.
'</pre>'
;
}
}
}
/**
* Implements hook_entity_delete().
*/
Loading