Skip to content

Instantly share code, notes, and snippets.

@marcaddeo
Created July 10, 2018 15:21
Show Gist options
  • Save marcaddeo/ce2ff80a4bbfc72ada405b7625b7c592 to your computer and use it in GitHub Desktop.
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
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