You are here

public static function AuditFilesBatchProcess::_auditfiles_not_on_server_batch_finish_batch in Audit Files 8

Called when the batch is complete in 'Not on server'.

File

src/AuditFilesBatchProcess.php, line 86
providing the service that used in not in

Class

AuditFilesBatchProcess
Process batch files.

Namespace

Drupal\auditfiles

Code

public static function _auditfiles_not_on_server_batch_finish_batch($success, $results, $operations) {
  if ($success) {

    // Do tasks.
  }
  else {
    $error_operation = reset($operations);
    drupal_set_message(t('An error occurred while processing @operation with arguments : @args', [
      '@operation' => $error_operation[0],
      '@args' => print_r($error_operation[0], TRUE),
    ]), 'error');
  }
}