function webform_cron in Webform 6.x
Same name and namespace in other branches
- 8.5 webform.module \webform_cron()
Implements hook_cron().
File
- ./
webform.module, line 181 - Enables the creation of webforms and questionnaires.
Code
function webform_cron() {
$config = \Drupal::config('webform.settings');
\Drupal::entityTypeManager()
->getStorage('webform_submission')
->purge($config
->get('purge.cron_size'));
}