public function CronForm::submitForm

Implements \Drupal\Core\Form\FormInterface::submitForm().

Overrides SystemConfigFormBase::submitForm

File

drupal/core/modules/system/lib/Drupal/system/Form/CronForm.php, line 102
Contains \Drupal\system\Form\CronForm.

Class

CronForm
Configure cron settings for this site.

Namespace

Drupal\system\Form

Code

public function submitForm(array &$form, array &$form_state) {
  $this->configFactory
    ->get('system.cron')
    ->set('threshold.autorun', $form_state['values']['cron_safe_threshold'])
    ->save();
  parent::submitForm($form, $form_state);
}