Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
image_hover_effects
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
image_hover_effects
Merge requests
!4
Issue
#3420400
- Add help hook
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Issue
#3420400
- Add help hook
issue/image_hover_effects-3420400:3420400-implement-hookhelp
into
8.x-1.x
Overview
0
Commits
1
Pipelines
1
Changes
1
Merged
Viktor Holovachek
requested to merge
issue/image_hover_effects-3420400:3420400-implement-hookhelp
into
8.x-1.x
1 year ago
Overview
0
Commits
1
Pipelines
1
Changes
1
Expand
Closes
#3420400
0
0
Merge request reports
Compare
8.x-1.x
8.x-1.x (base)
and
latest version
latest version
ad84a029
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
image_hover_effects.module
+
15
−
0
Options
@@ -5,8 +5,23 @@
* Primary module hooks for Image Hover Effects module.
*/
use
Drupal\Core\Routing\RouteMatchInterface
;
use
Drupal\Core\Template\Attribute
;
/**
* Implements hook_help().
*/
function
image_hover_effects_help
(
$route_name
,
RouteMatchInterface
$route_match
)
{
switch
(
$route_name
)
{
case
'help.page.image_hover_effects'
:
$output
=
''
;
$output
.
=
'<h3>'
.
t
(
'About'
)
.
'</h3>'
;
$output
.
=
'<p>'
.
t
(
'Provides private entity fields functionality.'
)
.
'</p>'
;
$output
.
=
'<p>'
.
t
(
'The hover effect option is added to the field formatter of the core Image field. Since it only makes sense to have a hover effect on an image that is a link, the styling depends on a link being wrapped around the image.'
)
.
'</p>'
;
return
$output
;
}
}
/**
* Implements hook_theme().
*/
Loading