function automated_cron_settings_submit
automated_cron_settings_submit(array $form, FormStateInterface $form_state)
Form submission handler for system_cron_settings().
File
- core/modules/automated_cron/automated_cron.module, line 69
- Provides an automated cron by executing it at the end of a response.
Code
function automated_cron_settings_submit(array $form, FormStateInterface $form_state) { \Drupal::configFactory()->getEditable('automated_cron.settings') ->set('interval', $form_state->getValue('interval')) ->save(); drupal_set_message(t('The configuration options have been saved.')); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!modules!automated_cron!automated_cron.module/function/automated_cron_settings_submit/8.1.x