public function AsafSettingsForm::submitForm in Asaf (ajax submit for any form) 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/ AsafSettingsForm.php, line 73
Class
Namespace
Drupal\asaf\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$this
->config('asaf_settings.config')
->set('asaf_forms', $form_state
->getValue('asaf_forms'))
->set('asaf_show_form_ids', $form_state
->getValue('asaf_show_form_ids'))
->set('asaf_autoload_form_stuff', $form_state
->getValue('asaf_autoload_form_stuff'))
->set('asaf_form_submit_by_enter', $form_state
->getValue('asaf_form_submit_by_enter'))
->save();
parent::submitForm($form, $form_state);
}