public function SettingsForm::submitForm in Bibliography & Citation 8
Same name in this branch
- 8 src/Form/SettingsForm.php \Drupal\bibcite\Form\SettingsForm::submitForm()
- 8 modules/bibcite_import/src/Form/SettingsForm.php \Drupal\bibcite_import\Form\SettingsForm::submitForm()
Same name and namespace in other branches
- 2.0.x src/Form/SettingsForm.php \Drupal\bibcite\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
- src/
Form/ SettingsForm.php, line 94
Class
- SettingsForm
- Common configuration.
Namespace
Drupal\bibcite\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$config = $this
->config('bibcite.settings');
$config
->set('processor', $form_state
->getValue('processor'))
->set('default_style', $form_state
->getValue('default_style'))
->save();
parent::submitForm($form, $form_state);
}