Created
July 10, 2018 15:21
-
-
Save marcaddeo/ce2ff80a4bbfc72ada405b7625b7c592 to your computer and use it in GitHub Desktop.
Update the BackupDatabaseForm to not persist the filename to config, as we're using config_readonly
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/Form/BackupDatabaseForm.php b/src/Form/BackupDatabaseForm.php | |
index e9ba957..66851b1 100755 | |
--- a/src/Form/BackupDatabaseForm.php | |
+++ b/src/Form/BackupDatabaseForm.php | |
@@ -70,11 +70,6 @@ class BackupDatabaseForm extends FormBase { | |
public function submitForm(array &$form, FormStateInterface $form_state) { | |
$values = $form_state->getValues(); | |
- // Save filename. | |
- \Drupal::configFactory()->getEditable('backup_db.settings') | |
- ->set('filename', $values['filename']) | |
- ->save(); | |
- | |
// Call backup_db client. | |
$client = \Drupal::service('backup_db.client'); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment