public static function AuditFilesBatchProcess::auditfilesNotInDatabaseBatchAddProcessBatch in Audit Files 8.2
The batch process for adding the file.
Parameters
string $filename: File name that to be process.
array $context: Used by the Batch API to keep track of data and pass it from one operation to the next.
File
- src/
AuditFilesBatchProcess.php, line 44
Class
- AuditFilesBatchProcess
- Process batch files.
Namespace
Drupal\auditfilesCode
public static function auditfilesNotInDatabaseBatchAddProcessBatch($filename, array &$context) {
\Drupal::service('auditfiles.not_in_database')
->auditfilesNotInDatabaseBatchAddProcessFile($filename);
$context['results'][] = $filename;
$context['message'] = t('Processed %filename.', [
'%filename' => $filename,
]);
}