Issue #3047804 by bircher, ricardoamaro, alexpott: Add scaffolding for config_environment experimental module
parent
adda2c8663
commit
8b13e29f10
|
|
@ -85,6 +85,7 @@
|
||||||
"drupal/color": "self.version",
|
"drupal/color": "self.version",
|
||||||
"drupal/comment": "self.version",
|
"drupal/comment": "self.version",
|
||||||
"drupal/config": "self.version",
|
"drupal/config": "self.version",
|
||||||
|
"drupal/config_environment": "self.version",
|
||||||
"drupal/config_translation": "self.version",
|
"drupal/config_translation": "self.version",
|
||||||
"drupal/contact": "self.version",
|
"drupal/contact": "self.version",
|
||||||
"drupal/content_moderation": "self.version",
|
"drupal/content_moderation": "self.version",
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,8 @@
|
||||||
|
name: 'Configuration Environment'
|
||||||
|
type: module
|
||||||
|
description: 'Allows administrators to manage configuration environments.'
|
||||||
|
package: Core (Experimental)
|
||||||
|
version: VERSION
|
||||||
|
core: 8.x
|
||||||
|
dependencies:
|
||||||
|
- drupal:config
|
||||||
|
|
@ -0,0 +1,21 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @file
|
||||||
|
* Allows site administrators to modify environment configuration.
|
||||||
|
*/
|
||||||
|
|
||||||
|
use Drupal\Core\Routing\RouteMatchInterface;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Implements hook_help().
|
||||||
|
*/
|
||||||
|
function config_environment_help($route_name, RouteMatchInterface $route_match) {
|
||||||
|
switch ($route_name) {
|
||||||
|
case 'help.page.config_environment':
|
||||||
|
$output = '';
|
||||||
|
$output .= '<h3>' . t('About') . '</h3>';
|
||||||
|
$output .= '<p>' . t('The Configuration Environment module provides a mechanism for handling configuration changes between different environments. For more information, see the <a href=":config_environment">online documentation for the Configuration Environment module</a>.', [':config_environment' => 'https://www.drupal.org/node/3047873']) . '</p>';
|
||||||
|
return $output;
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue