You are here

public static function AuditFilesBatchProcess::auditfilesManagedNotUsedBatchFinishBatch in Audit Files 8.2

The function that is called when the batch is complete.

File

src/AuditFilesBatchProcess.php, line 133

Class

AuditFilesBatchProcess
Process batch files.

Namespace

Drupal\auditfiles

Code

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