Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
unpublished_node_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
unpublished_node_permissions
Merge requests
!4
3401796 - Add help hook
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
3401796 - Add help hook
issue/unpublished_node_permissions-3401796:3401796-implement-hookhelp
into
8.x-1.x
Overview
0
Commits
1
Pipelines
0
Changes
1
Merged
Viktor Holovachek
requested to merge
issue/unpublished_node_permissions-3401796:3401796-implement-hookhelp
into
8.x-1.x
1 year ago
Overview
0
Commits
1
Pipelines
0
Changes
1
Expand
Closes
#3401796
0
0
Merge request reports
Compare
8.x-1.x
version 1
11d68cf6
1 year ago
8.x-1.x (base)
and
latest version
latest version
ab125e0d
1 commit,
1 year ago
version 1
11d68cf6
1 commit,
1 year ago
1 file
+
15
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
unpublished_node_permissions.module
+
15
−
0
Options
@@ -7,6 +7,21 @@
use
Drupal\Core\Access\AccessResult
;
use
Drupal\node\NodeInterface
;
use
Drupal\Core\Routing\RouteMatchInterface
;
/**
* Implements hook_help().
*/
function
unpublished_node_permissions_help
(
$route_name
,
RouteMatchInterface
$route_match
)
{
switch
(
$route_name
)
{
case
'help.page.unpublished_node_permissions'
:
$output
=
''
;
$output
.
=
'<h3>'
.
t
(
'About'
)
.
'</h3>'
;
$output
.
=
'<p>'
.
t
(
'Creates permisisons per node content type to control access to unpublished nodes per content type.'
)
.
'</p>'
;
return
$output
;
}
}
/**
* Implements hook_views_data_alter().
Loading