You are here

public static function AuditFilesBatchProcess::auditfilesNotOnServerBatchFinishBatch in Audit Files 8.2

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

File

src/AuditFilesBatchProcess.php, line 89

Class

AuditFilesBatchProcess
Process batch files.

Namespace

Drupal\auditfiles

Code

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

    // Do tasks.
  }
  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),
    ]));
  }
}