diff --git a/core/lib/Drupal/Core/Config/Entity/ConfigStorageController.php b/core/lib/Drupal/Core/Config/Entity/ConfigStorageController.php index 078a548..980aedb 100644 --- a/core/lib/Drupal/Core/Config/Entity/ConfigStorageController.php +++ b/core/lib/Drupal/Core/Config/Entity/ConfigStorageController.php @@ -498,7 +498,7 @@ public function importDelete($name, Config $new_config, Config $old_config) { * {@inheritdoc} */ public function getExport(ConfigEntityInterface $entity) { - // Read the raw config data and encode it as YAML. + // Read the raw config data and encode it for output. $prefix = $this->getConfigPrefix(); $data = $this->configStorage->read($prefix . $entity->id()); return $this->configStorage->encode($data); diff --git a/core/modules/config/lib/Drupal/config/Tests/ConfigEntityExportFormTest.php b/core/modules/config/lib/Drupal/config/Tests/ConfigEntityExportFormTest.php index 8e208cf..ae943a4 100644 --- a/core/modules/config/lib/Drupal/config/Tests/ConfigEntityExportFormTest.php +++ b/core/modules/config/lib/Drupal/config/Tests/ConfigEntityExportFormTest.php @@ -39,6 +39,7 @@ public function testConfigTestExport() { $element = $this->xpath('//textarea[@id="edit-export"]'); $this->assertTrue(!empty($element), 'Textarea with config export found.'); + // This assertion assumes the file storage uses YAML. $config_entity = entity_load('config_test', 'dotted.default'); $uuid = $config_entity->uuid(); $expected_export = array(); diff --git a/core/modules/config/lib/Drupal/config/Tests/ConfigEntityListTest.php b/core/modules/config/lib/Drupal/config/Tests/ConfigEntityListTest.php index f97d6cf..cb648ad 100644 --- a/core/modules/config/lib/Drupal/config/Tests/ConfigEntityListTest.php +++ b/core/modules/config/lib/Drupal/config/Tests/ConfigEntityListTest.php @@ -65,6 +65,12 @@ function testList() { 'options' => $uri['options'], 'weight' => 20, ), + 'export' => array( + 'title' => t('Export'), + 'href' => $uri['path'] . '/export', + 'options' => $uri['options'], + 'weight' => 30, + ), 'delete' => array ( 'title' => t('Delete'), 'href' => $uri['path'] . '/delete', @@ -138,6 +144,12 @@ function testList() { 'options' => $uri['options'], 'weight' => 10, ), + 'export' => array( + 'title' => t('Export'), + 'href' => $uri['path'] . '/export', + 'options' => $uri['options'], + 'weight' => 30, + ), 'delete' => array( 'title' => t('Delete'), 'href' => $uri['path'] . '/delete',