public function SettingsForm::submitForm in Sparkpost email 8.2
Same name in this branch
- 8.2 src/Form/SettingsForm.php \Drupal\sparkpost\Form\SettingsForm::submitForm()
- 8.2 modules/sparkpost_requeue/src/Form/SettingsForm.php \Drupal\sparkpost_requeue\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/
sparkpost_requeue/ src/ Form/ SettingsForm.php, line 71
Class
- SettingsForm
- Settings form for sparkpost requeue.
Namespace
Drupal\sparkpost_requeue\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
parent::submitForm($form, $form_state);
$this
->config('sparkpost_requeue.settings')
->set('enable', $form_state
->getValue('enable'))
->set('max_retries', $form_state
->getValue('max_retries'))
->set('minimum_time', $form_state
->getValue('minimum_time'))
->save();
}