You are here

public static function AuditFilesBatchProcess::auditfilesNotInDatabaseBatchFinishBatch in Audit Files 8.2

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

File

src/AuditFilesBatchProcess.php, line 18

Class

AuditFilesBatchProcess
Process batch files.

Namespace

Drupal\auditfiles

Code

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

    // Success action.
  }
  else {
    $error_operation = reset($operations);
    $self::messenger()
      ->addError(t('An error occurred while processing @operation with arguments : @args', [
      '@operation' => $error_operation[0],
      '@args' => print_r($error_operation[0], TRUE),
    ]));
  }
}