Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
access_policy
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
access_policy
Merge requests
!2
Issue
#3335606
: hook_help function missing in .module file
Code
Review changes
Check out branch
Download
Patches
Plain diff
Closed
Issue
#3335606
: hook_help function missing in .module file
issue/access_policy-3335606:1.0.x
into
1.0.x
Overview
0
Commits
1
Pipelines
0
Changes
1
Closed
Shubham Rathore
requested to merge
issue/access_policy-3335606:1.0.x
into
1.0.x
2 years ago
Overview
0
Commits
1
Pipelines
0
Changes
1
Expand
0
0
Merge request reports
Compare
1.0.x
1.0.x (base)
and
latest version
latest version
d953d7f4
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
access_policy.module
+
15
−
0
Options
@@ -13,12 +13,27 @@ use Drupal\views\ViewExecutable;
use
Drupal\views\Plugin\views\query\Sql
;
use
Drupal\field\FieldConfigInterface
;
use
Drupal\Core\Database\Query\SelectInterface
;
use
Drupal\Core\Routing\RouteMatchInterface
;
/**
* @file
* Hook implementations for the access_policy module.
*/
/**
* Implements hook_help().
*/
function
access_policy_help
(
$route_name
,
RouteMatchInterface
$route_match
)
{
switch
(
$route_name
)
{
// Main module help for the access_policy module.
case
'help.page.access_policy'
:
$output
=
''
;
$output
.
=
'<h3>'
.
t
(
'About'
)
.
'</h3>'
;
$output
.
=
'<p>'
.
t
(
'The Access policy module combines Drupal'
s
role
based
access
control
(
RBAC
)
architecture
with
an
Attribute
Based
Access
Control
(
ABAC
)
architecture
to
create
an
incredibly
powerful
and
flexible
system
for
managing
access
to
your
content
.
') . '
</
p
>
';
return $output;
}
}
/**
* Implements hook_theme().
*/
Loading