function wkhtmltopdf_cron in wkhtmltopdf 8
Implements hook_cron().
File
- ./
wkhtmltopdf.module, line 33 - Drupal module.
Code
function wkhtmltopdf_cron() {
$path = \Drupal::service('file_system')
->realpath('public://wkhtmltopdf');
foreach (glob($path . '/*') as $file) {
unlink($file);
}
}