function automated_cron_settings_submit
Same name and namespace in other branches
- 11.x core/modules/automated_cron/automated_cron.module \automated_cron_settings_submit()
- 10 core/modules/automated_cron/automated_cron.module \automated_cron_settings_submit()
- 9 core/modules/automated_cron/automated_cron.module \automated_cron_settings_submit()
- 8.9.x core/modules/automated_cron/automated_cron.module \automated_cron_settings_submit()
Form submission handler for system_cron_settings().
Deprecated
in drupal:11.4.0 and is removed from drupal:13.0.0. Use AutomatedCronHooks::automatedCronSettingsSubmit() instead.
See also
https://www.drupal.org/node/3566774
\Drupal\automated_cron\Hook\AutomatedCronHooks::automatedCronSettingsSubmit()
File
-
core/
modules/ automated_cron/ automated_cron.module, line 18
Code
function automated_cron_settings_submit(array $form, FormStateInterface $form_state) : void {
@trigger_error(__FUNCTION__ . '() is deprecated in drupal:11.4.0 and is removed from drupal:13.0.0. There is no replacement. See https://www.drupal.org/node/3566774', E_USER_DEPRECATED);
\Drupal::configFactory()->getEditable('automated_cron.settings')
->set('interval', $form_state->getValue('interval'))
->save();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.