You are here

function imagecache_external_batch_flush_process in Imagecache External 8

The batch processor.

1 string reference to 'imagecache_external_batch_flush_process'
imagecache_external_batch_flush in ./imagecache_external.module
The batch callback.

File

./imagecache_external.module, line 417
Allows the usage of Image Styles on external images.

Code

function imagecache_external_batch_flush_process($chunk, $operation_details, &$context) {
  foreach ($chunk as $file) {
    \Drupal::service('file_system')
      ->deleteRecursive($file);
  }

  // Show what chunk is currently being processed.
  $context['message'] = $operation_details;
}