public function AdminForm::submitForm in Scheduled Updates 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/ AdminForm.php, line 60 - Contains Drupal\scheduled_updates\Form\AdminForm.
Class
- AdminForm
- Class AdminForm.
Namespace
Drupal\scheduled_updates\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
parent::submitForm($form, $form_state);
$this
->config('scheduled_updates.settings')
->set('timeout', $form_state
->getValue('timeout'))
->save();
}