diff --git a/core/modules/config/config.module b/core/modules/config/config.module index 05f4b6d..f9b37ad 100644 --- a/core/modules/config/config.module +++ b/core/modules/config/config.module @@ -13,17 +13,55 @@ function config_help($route_name, RouteMatchInterface $route_match) { switch ($route_name) { 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 = ''; + $output .= '

' . t('About') . '

'; + $output .= '

' . t('The Configuration Manager module provides a user interface for importing and exporting configuration changes between installations of your website in different environments such as Development, Staging, and Production.') . '

'; + $output .= '

' . t('This allows you to deploy configuration from one environment to another, provided they are the same site. The site is identified using a Universally Unique Identifier (UUID). The site UUID must match the target site to allow any importing of configuration files on that site.') . '

'; + $output .= '

' . t('For more information, see the online documentation for the Configuration Manager module', array( + '!url' => 'https://drupal.org/documentation/administer/config', )) . '

'; - return $output; + $output .= '

' . t('Uses') . '

'; + $output .= '
'; + $output .= '
' . t('Exporting a Full Configuration') . '
'; + $output .= '
' . t('Creates a downloadable archive of the active configuration. To export configuration click on Export tab under Full Import/Export on module configuration page.', array( + '!url' => '/admin/config/development/configuration/full/export','!config' => '/admin/config/development/configuration',)) . '
'; + $output .= '
' . t('Importing a Full Configuration') . '
'; + $output .= '
' . t('Allows you to upload a full site configuration from an archive file. To import configuration click on Import tab under Full Import/Export on module configuration page.', array( + '!url' => '/admin/config/development/configuration/full/import','!config' => '/admin/config/development/configuration',)) . '
'; + $output .= '
' . t('Synchronizing Configuration'). '
'; + $output .= '
' . t('Allows you to review differences between the active configuration and an imported configuration archive. From this list you can view the differences between the configuration to ensure that the changes are as expected, before setting the changes active. The Synchronize page will also show new or removed config files. It is important to check that there are no removals of any core configuration (such as system.*, entity.*) as this will result in a site error. To synchronize configuration click on Synchronize tab on module configuration page.', array('!url' => '/admin/config/development/configuration',)) . '
'; + $output .= '
' . t('Exporting a Single Configuration Item') . '
'; + $output .= '
' . t('Allows you to export a single configuration item to YAML that can be copied into the single import form. To export Single Configuration Item click on Export tab under Single Import/Export on module configuration page.', array( + '!url' => '/admin/config/development/configuration/single/export','!config' => '/admin/config/development/configuration',)) . '
'; + $output .= '
' . t('Importing a Single Configuration Item') . '
'; + $output .= '
' . t('Allows you to import a single configuration item by pasting YAML into a form. To import configuration click on Import tab under Single Import/Export on module configuration page.', array('!url' => '/admin/config/development/configuration/single/import','!config' => '/admin/config/development/configuration',)) . '
'; + $output .= '
'; + return $output; case 'config.sync': - $output = ''; - $output .= '

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

'; - return $output; + $output = ''; + $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 all configurations of this site, and download them as a gzipped tar file.') . '

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

' . t('The full import page can be used to import the full configuration of this site by uploading a gzipped tar file consisting of all configuration YAML files.') . '

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

' . t('The single export page can be used to retrieve a single configuration 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 by pasting a YAML structure in the textarea.') . '

'; + return $output; } } @@ -36,6 +74,6 @@ function config_file_download($uri) { if ($scheme == 'temporary' && $target == 'config.tar.gz') { return array( 'Content-disposition' => 'attachment; filename="config.tar.gz"', - ); + ); } }