Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
config_distro
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
config_distro
Merge requests
!3
Issue
#3332145
: hook_help function missing in .module file
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Issue
#3332145
: hook_help function missing in .module file
issue/config_distro-3332145:3332145-hookhelp-function-missing
into
2.0.x
Overview
6
Commits
5
Pipelines
4
Changes
1
Merged
Jitendra Kumar
requested to merge
issue/config_distro-3332145:3332145-hookhelp-function-missing
into
2.0.x
2 years ago
Overview
6
Commits
5
Pipelines
4
Changes
1
Expand
1
0
Merge request reports
Compare
2.0.x
version 5
0c9d0eed
1 year ago
version 4
9a56c1a2
1 year ago
version 3
9a56c1a2
1 year ago
version 2
50283841
2 years ago
version 1
38e7becb
2 years ago
2.0.x (base)
and
latest version
latest version
30f9c29e
5 commits,
1 year ago
version 5
0c9d0eed
4 commits,
1 year ago
version 4
9a56c1a2
3 commits,
1 year ago
version 3
9a56c1a2
3 commits,
1 year ago
version 2
50283841
2 commits,
2 years ago
version 1
38e7becb
1 commit,
2 years ago
1 file
+
34
−
0
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
config_distro.module
+
34
−
0
Options
@@ -5,6 +5,40 @@
@@ -5,6 +5,40 @@
* Framework for managing configuration updates from distributions.
* Framework for managing configuration updates from distributions.
*/
*/
use
Drupal\Core\Link
;
use
Drupal\Core\Routing\RouteMatchInterface
;
use
Drupal\Core\Url
;
/**
* Implements hook_help().
*/
function
config_distro_help
(
$route_name
,
RouteMatchInterface
$route_match
)
{
switch
(
$route_name
)
{
// Main module help for the 'Config Distro' module.
case
'help.page.config_distro'
:
$output
=
'<h3>'
.
t
(
'Usage'
)
.
'</h3>'
;
$output
.
=
'<p>'
.
t
(
'To use this module you should install one or more
modules that provide Config Filter plugins that integrate with this
module, such as Configuration Synchronizer.'
)
.
'</p>'
;
$output
.
=
'<p>'
.
t
(
'Update your installed modules or themes to new
versions that include configuration changes or updates. Run database
updates and clear caches.'
)
.
'</p>'
;
// Using Drupal's Url and Link classes for internal paths.
$distroUpdateUrl
=
Url
::
fromRoute
(
'config_distro.import'
);
$distroUpdateLink
=
Link
::
fromTextAndUrl
(
t
(
'Distribution Update'
),
$distroUpdateUrl
)
->
toString
();
$output
.
=
'<p>'
.
t
(
'If using the UI, navigate to Configuration >
Development > !distroUpdateLink (/admin/config/development/distro). Review and run updates'
,
[
'!distroUpdateLink'
=>
$distroUpdateLink
])
.
'</p>'
;
$output
.
=
'<p>'
.
t
(
'If using Drush, use the Drush command config-distro-update to run imports.'
)
.
'</p>'
;
return
$output
;
}
}
/**
/**
* Implements hook_batch_alter().
* Implements hook_batch_alter().
*
*
Loading