public function GAPushFormValidateSettingsForm::submitForm in GA Push 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
- modules/
form_validate/ src/ Form/ GAPushFormValidateSettingsForm.php, line 46
Class
- GAPushFormValidateSettingsForm
- Ga Push Validate Settings Form.
Namespace
Drupal\ga_push_form_validate\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$this
->config('ga_push_form_validate.settings')
->set('form_list', $form_state
->getValue('form_list'))
->set('show_form_ids', $form_state
->getValue('show_form_ids'))
->save();
parent::submitForm($form, $form_state);
}