You are here

public function LauncherSettingsForm::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/LauncherSettingsForm.php, line 88

Class

LauncherSettingsForm
Form for launcher settings.

Namespace

Drupal\ultimate_cron\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  $this
    ->config('ultimate_cron.settings')
    ->set('launcher.lock_timeout', $form_state
    ->getValue('lock_timeout'))
    ->set('launcher.max_execution_time', $form_state
    ->getValue('max_execution_time'))
    ->set('launcher.max_threads', $form_state
    ->getValue('max_threads'))
    ->set('launcher.thread', $form_state
    ->getValue('thread'))
    ->save();
  parent::submitForm($form, $form_state);
}