automated_cron.module

Same filename in other branches
  1. 9 core/modules/automated_cron/automated_cron.module
  2. 8.9.x core/modules/automated_cron/automated_cron.module
  3. 10 core/modules/automated_cron/automated_cron.module

File

core/modules/automated_cron/automated_cron.module

View source
<?php


/**
 * @file
 */
use Drupal\Core\Form\FormStateInterface;

/**
 * Form submission handler for system_cron_settings().
 */
function automated_cron_settings_submit(array $form, FormStateInterface $form_state) {
    \Drupal::configFactory()->getEditable('automated_cron.settings')
        ->set('interval', $form_state->getValue('interval'))
        ->save();
}

Functions

Title Deprecated Summary
automated_cron_settings_submit Form submission handler for system_cron_settings().

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.