Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
simplei
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
simplei
Merge requests
!3
Resolve
#3343657
"Hook help"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve
#3343657
"Hook help"
issue/simplei-3343657:3343657-Hook-help
into
2.x
Overview
0
Commits
1
Pipelines
0
Changes
1
Merged
Elber Rodrigues
requested to merge
issue/simplei-3343657:3343657-Hook-help
into
2.x
2 years ago
Overview
0
Commits
1
Pipelines
0
Changes
1
Expand
Closes
#3343657
0
0
Merge request reports
Compare
2.x
version 1
eb41c560
2 years ago
2.x (base)
and
latest version
latest version
92d83430
1 commit,
2 years ago
version 1
eb41c560
1 commit,
2 years ago
1 file
+
16
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
simplei.module
+
16
−
1
Options
@@ -7,6 +7,21 @@
use
Drupal\Component\Utility\Html
;
use
Drupal\Core\Site\Settings
;
use
Drupal\Core\Routing\RouteMatchInterface
;
/**
* Implements hook help.
*/
function
simplei_help
(
$route_name
,
RouteMatchInterface
$route_match
)
{
switch
(
$route_name
)
{
case
'help.page.simplei'
:
$path
=
__DIR__
.
'/README.txt'
;
if
(
file_exists
(
$path
))
{
return
'<pre>'
.
file_get_contents
(
$path
)
.
'</pre>'
;
}
}
}
/**
* Implements hook_page_attachments().
@@ -31,7 +46,7 @@ function simplei_page_attachments(array &$attachments) {
$css
=
$anon
;
}
elseif
(
is_bool
(
$anon
))
{
$css
=
"body:after {
$css
=
"body:after {
content:
\"
[
$environment
]
\"
;
position: fixed;
top: 0;
Loading