Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
entity_reference_display
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
entity_reference_display
Commits
e3d1d01d
Commit
e3d1d01d
authored
2 years ago
by
Sonal Gyanani
Committed by
Sonal Gyanani
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3335796
: Add hook help
parent
2206d90c
Branches
Branches containing commit
Tags
10.0.0-beta5
Tags containing commit
1 merge request
!5
Issue #3335796: Add hook help
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
entity_reference_display.module
+26
-0
26 additions, 0 deletions
entity_reference_display.module
with
26 additions
and
0 deletions
entity_reference_display.module
+
26
−
0
View file @
e3d1d01d
...
...
@@ -8,6 +8,32 @@
use
Drupal\Component\Utility\Html
;
use
Drupal\Core\Form\FormStateInterface
;
use
Drupal\entity_reference_display
\Plugin\Field\FieldFormatter\EntityReferenceRevisionsDisplayFormatter
;
use
Drupal\Core\Routing\RouteMatchInterface
;
/**
* Implements hook_help().
*/
function
entity_reference_display_help
(
$route_name
,
RouteMatchInterface
$route_match
)
{
switch
(
$route_name
)
{
// Main module help for the entity_reference_display module.
case
'help.page.entity_reference_display'
:
$output
=
''
;
$output
.
=
'<h3>'
.
t
(
'About'
)
.
'</h3>'
;
$output
.
=
'<p>'
.
t
(
'This module defines a simple field type for display mode selection for entity
reference fields. This allows an editor to select how they would like the
references displayed. </p> <p> <strong>
"Display mode" field type: </strong> This field allows you to specify a display mode
for the rendering of entity reference fields. You can configure available
options to show only certain display modes. The user then selects one from these
and affects the way your entity reference field renders items.</p> <p>
<strong>"Selected display mode" field formatter:</strong> This formatter allows you to render
referenced entities with a selected display mode. The formatter is available
only for entity reference fields where the base entity contains at least one
display mode field. When there are more display fields available, you can choose
one.'
)
.
'</p>'
;
return
$output
;
}
}
/**
* Implements hook_form_alter().
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment