Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
frontend_editing
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
frontend_editing
Merge requests
!19
Issue
#3338259
: Implement hook_help()
Code
Review changes
Check out branch
Download
Patches
Plain diff
Closed
Issue
#3338259
: Implement hook_help()
issue/frontend_editing-3338259:3338259-implement-hookhelp
into
1.x
Overview
1
Commits
1
Pipelines
0
Changes
1
Closed
jay jangid
requested to merge
issue/frontend_editing-3338259:3338259-implement-hookhelp
into
1.x
2 years ago
Overview
1
Commits
1
Pipelines
0
Changes
1
Expand
0
0
Merge request reports
Compare
1.x
1.x (base)
and
latest version
latest version
b4cb0beb
1 commit,
2 years ago
1 file
+
28
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Conflict: This file was modified in both the source and target branches. Ask someone with write access to resolve it.
frontend_editing.module
+
28
−
0
Options
@@ -13,7 +13,35 @@ use Drupal\Core\Entity\RevisionableInterface;
use
Drupal\Core\Form\FormStateInterface
;
use
Drupal\Core\Form\SubformState
;
use
Drupal\Core\Url
;
use
Drupal\Core\Routing\RouteMatchInterface
;
/**
* Implements hook_help().
*/
function
frontend_editing_help
(
$route_name
,
RouteMatchInterface
$route_match
)
{
switch
(
$route_name
)
{
// Main module help for the frontend_editing module.
case
'help.page.frontend_editing'
:
$output
=
''
;
$output
.
=
'<h3>'
.
t
(
'About'
)
.
'</h3>'
;
$output
.
=
'<p>'
.
t
(
'This module allows to edit entities directly in the
frontend using a side panel.'
)
.
'</p>'
;
$output
.
=
'<p>'
.
t
(
'It is built as a lightweight integration, that does
not rely on cores Settings Tray, Contextual Links, or Quick Edit
modules'
)
.
'</p>'
;
$output
.
=
'<p>'
.
t
(
'Instead this module adds the link to editing forms of
entities to the frontend, and provides a sidebar to load these forms as
iframes.'
)
.
'</p>'
;
$output
.
=
'<p>'
.
t
(
'The benefit of this approach is, that editing in the
frontend uses the same styles as editing in the backend. This allows a
consistent editorial experience.'
)
.
'</p>'
;
$output
.
=
'<p>'
.
t
(
'The module works nicely with paragraphs and blocks,
but other entities can be edited, too.'
)
.
'</p>'
;
return
$output
;
default
:
}
}
/**
* Implements hook_entity_view_alter().
*/
Loading