You are here

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

Class

LoggerSettingsForm
Form for logger settings.

Namespace

Drupal\ultimate_cron\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  $this
    ->config('ultimate_cron.settings')
    ->set('logger.cache', $form_state
    ->getValue('cache'))
    ->set('logger.database', $form_state
    ->getValue('database'))
    ->save('');
  parent::submitForm($form, $form_state);
}