function webform_scheduled_tasks_set_config in Webform Scheduled Tasks 8
Sets the value of a config item.
2 calls to webform_scheduled_tasks_set_config()
- WebformSanitizeConfigForm::submitForm in src/
Form/ WebformSanitizeConfigForm.php - webform_scheduled_tasks_do_actions in ./
webform_scheduled_tasks.module - Function that does the actions, must also be triggerable by a drush command.
File
- ./
webform_scheduled_tasks.module, line 53 - This hook will fire whenever cron fires, usually 20 mins.
Code
function webform_scheduled_tasks_set_config($name, $value) {
$config = \Drupal::service('config.factory')
->getEditable('webform_scheduled_tasks.config');
$config
->set($name, $value)
->save();
}