You are here

public static function AuditFilesBatchProcess::_auditfiles_merge_file_references_batch_finish_batch in Audit Files 8

The function that is called when the batch is complete.

File

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

Class

AuditFilesBatchProcess
Process batch files.

Namespace

Drupal\auditfiles

Code

public static function _auditfiles_merge_file_references_batch_finish_batch($success, $results, $operations) {
  if (!$success) {
    $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');
  }
}