You are here

public static function AuditFilesBatchProcess::auditfiles_not_in_database_batch_finish_batch in Audit Files 8

Called when the batch is completed in 'not in database fumctionality'.

File

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

Class

AuditFilesBatchProcess
Process batch files.

Namespace

Drupal\auditfiles

Code

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

    // success action.
  }
  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');
  }
}