You are here

public function SettingsForm::submitForm in Bibliography & Citation 8

Same name in this branch
  1. 8 src/Form/SettingsForm.php \Drupal\bibcite\Form\SettingsForm::submitForm()
  2. 8 modules/bibcite_import/src/Form/SettingsForm.php \Drupal\bibcite_import\Form\SettingsForm::submitForm()
Same name and namespace in other branches
  1. 2.0.x modules/bibcite_import/src/Form/SettingsForm.php \Drupal\bibcite_import\Form\SettingsForm::submitForm()

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

modules/bibcite_import/src/Form/SettingsForm.php, line 50

Class

SettingsForm
Module settings form.

Namespace

Drupal\bibcite_import\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  $config = $this
    ->config('bibcite_import.settings');
  $config
    ->set('settings.contributor_deduplication', $form_state
    ->getValue('contributor_deduplication'));
  $config
    ->set('settings.keyword_deduplication', $form_state
    ->getValue('keyword_deduplication'));
  $config
    ->save();
  parent::submitForm($form, $form_state);
}