public function AddAnotherSettingsForm::submitForm in Add Another 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/ AddAnotherSettingsForm.php, line 64
Class
- AddAnotherSettingsForm
- Configure Add another settings for this site.
Namespace
Drupal\addanother\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$this
->config('addanother.settings')
->set('default_button', $form_state
->getValue('default_button'))
->set('default_message', $form_state
->getValue('default_message'))
->set('default_tab', $form_state
->getValue('default_tab'))
->set('default_tab_edit', $form_state
->getValue('default_tab_edit'))
->save();
parent::submitForm($form, $form_state);
}