From 676f579471c8de8d0f346e252fdf6543da901b75 Mon Sep 17 00:00:00 2001 From: Darryl Norris Date: Sat, 27 Jun 2015 10:44:17 -0500 Subject: [PATCH] #1831798:Update hook_help() for config manager module --- core/modules/config/config.module | 34 ++++++++++++++++++++++++++++++---- 1 file changed, 30 insertions(+), 4 deletions(-) diff --git a/core/modules/config/config.module b/core/modules/config/config.module index 3be5c49..e3ffa3b 100644 --- a/core/modules/config/config.module +++ b/core/modules/config/config.module @@ -15,9 +15,20 @@ function config_help($route_name, RouteMatchInterface $route_match) { case 'help.page.config': $output = ''; $output .= '

' . t('About') . '

'; - $output .= '

' . t('The Configuration manager module provides a user interface for importing and exporting configuration changes; i.e., for staging configuration data between multiple instances of this web site. For more information, see the online handbook entry for Configuration manager module', array( - '!url' => 'https://www.drupal.org/documentation/administer/config', - )) . '

'; + $output .= '

' . t('The Configuration Manager module provides a user interface for importing and exporting configuration changes between installations of your website in different environments. Configuration is stored in YAML format. For more information, see the online documentation for the Configuration Manager module.', array('!url' => 'https://www.drupal.org/documentation/administer/config')) . '

'; + $output .= '

' . t('Uses') . '

'; + $output .= '
'; + $output .= '
' . t('Exporting a full configuration') . '
'; + $output .= '
' . t('You can create and download an archive consisting of all your site\'s configuration exported as *.yml files on the Export page.' , array('!url' => \Drupal::url('config.export_full'))) . '
'; + $output .= '
' . t('Importing a full configuration') . '
'; + $output .= '
' . t('You can upload a full site configuration from an archive file on the Import page. When importing data from a different environment, the site and import files must have matching configuration values for UUID in the system.site configuration item. That means that your other environments should initially be set up as a clone of the target site. Migrations are not supported.', array('!url' => \Drupal::url('config.import_full'))) . '
'; + $output .= '
' . t('Synchronizing configuration'). '
'; + $output .= '
' . t('You can review differences between the active configuration and an imported configuration archive on the Synchronize page to ensure that the changes are as expected, before finalizing the import. The Synchronize page also shows configuration items that would be added or removed.', array('!synchronize' => \Drupal::url('config.sync'))) . '
'; + $output .= '
' . t('Exporting a single configuration item') . '
'; + $output .= '
' . t('You can export a single configuration item by selecting a Configuration type and Configuration name on the Single export page. The configuration and its corresponding *.yml file name are then displayed on the page for you to copy them.', array('!single-export' => \Drupal::url('config.export_single'))) . '
'; + $output .= '
' . t('Importing a single configuration item') . '
'; + $output .= '
' . t('You can import a single configuration item by pasting it in YAML format into the form on the Single import page.', array('!single-import' => \Drupal::url('config.import_single'))) . '
'; + $output .= '
'; return $output; case 'config.sync': @@ -25,9 +36,24 @@ function config_help($route_name, RouteMatchInterface $route_match) { $output .= '

' . t('Import configuration that is placed in your staging directory. All changes, deletions, renames, and additions are listed below.') . '

'; return $output; + case 'config.export_full': + $output = ''; + $output .= '

' . t('The full export page can be used to export the full configuration of this site, and download it as a gzipped tar file.') . '

'; + return $output; + case 'config.import_full': $output = ''; - $output .= '

' . t('After uploading a configuration archive, you will be able to examine the changes and import them.') . '

'; + $output .= '

' . t('The full import page can be used to import the full configuration of this site by uploading a gzipped tar/bz file consisting of all configuration YAML files. The results will be placed in a the staging directory, so they can be compared in the Synchronize tab. There the import can be finalized.') . '

'; + return $output; + + case 'config.export_single': + $output = ''; + $output .= '

' . t('The single export page can be used to display a single configuration item in a YAML structure.') . '

'; + return $output; + + case 'config.import_single': + $output = ''; + $output .= '

' . t('The single import page can be used to import a single configuration item by pasting a YAML structure in the textarea.') . '

'; return $output; } } -- 2.3.2 (Apple Git-55)