You are here

public function BackupDatabaseTablesForm::submitForm in Backup Database 8

Form submission handler.

Parameters

array $form: An associative array containing the structure of the form.

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.

Overrides ConfigFormBase::submitForm

File

src/Form/BackupDatabaseTablesForm.php, line 69
Contains \Drupal\backup_db\Form\BackupDatabaseTablesForm.

Class

BackupDatabaseTablesForm
BackupDatabaseTablesForm class.

Namespace

Drupal\backup_db\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  parent::submitForm($form, $form_state);
  $this
    ->config('backup_db.settings')
    ->set('settings.include_tables', $form_state
    ->getValue('include_tables'))
    ->set('settings.exclude_tables', $form_state
    ->getValue('exclude_tables'))
    ->save();
}