public function SchedulerSettingsForm::submitForm in Ultimate Cron 8.2
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/ SchedulerSettingsForm.php, line 110
Class
- SchedulerSettingsForm
- Form for scheduler settings.
Namespace
Drupal\ultimate_cron\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$this
->config('ultimate_cron.settings')
->set('scheduler.crontab', $form_state
->getValue('crontab'))
->set('scheduler.simple', explode(';', $form_state
->getValue('simple')))
->save();
parent::submitForm($form, $form_state);
}