diff --git a/core/modules/config/src/Form/ConfigSingleExportForm.php b/core/modules/config/src/Form/ConfigSingleExportForm.php index 440de7f96365393bacf7d49ea553085d4e2a364d..2426b9038d9fff6e8b69ac89f211d205db25ae8b 100644 --- a/core/modules/config/src/Form/ConfigSingleExportForm.php +++ b/core/modules/config/src/Form/ConfigSingleExportForm.php @@ -105,7 +105,6 @@ public function buildForm(array $form, FormStateInterface $form_state, $config_t '#type' => 'select', '#options' => $this->findConfiguration($default_type), '#default_value' => $config_name, - '#required' => TRUE, '#prefix' => '
', '#suffix' => '
', '#ajax' => array( @@ -118,7 +117,6 @@ public function buildForm(array $form, FormStateInterface $form_state, $config_t '#title' => $this->t('Here is your configuration:'), '#type' => 'textarea', '#rows' => 24, - '#required' => TRUE, '#prefix' => '
', '#suffix' => '
', ); diff --git a/core/modules/config/src/Tests/ConfigExportUITest.php b/core/modules/config/src/Tests/ConfigExportUITest.php index 3c672da1de73e21a2d20f95a5812a44147b31545..f6840efa8b8ecd303854f08427b47fa7ea1bbd8f 100644 --- a/core/modules/config/src/Tests/ConfigExportUITest.php +++ b/core/modules/config/src/Tests/ConfigExportUITest.php @@ -82,6 +82,10 @@ function testExport() { $file_contents = file_get_contents(file_directory_temp() . '/' . 'system.maintenance.yml'); $exported = Yaml::decode($file_contents); $this->assertNotIdentical($exported['message'], 'Foo'); + + // Check the single export form doesn't have "form-required" elements. + $this->drupalGet('admin/config/development/configuration/single/export'); + $this->assertNoRaw('js-form-required form-required', 'No form required fields are found.'); } }