public function S3fsFileMigrationBatch::getBatch in S3 File System 8.3
Same name and namespace in other branches
- 4.0.x src/Batch/S3fsFileMigrationBatch.php \Drupal\s3fs\Batch\S3fsFileMigrationBatch::getBatch()
Return batch definition.
Return value
array Array of batch definition.
Overrides S3fsFileMigrationBatchInterface::getBatch
1 call to S3fsFileMigrationBatch::getBatch()
- S3fsFileMigrationBatch::execute in src/
Batch/ S3fsFileMigrationBatch.php - Copies all the local files from the specified file system into S3.
File
- src/
Batch/ S3fsFileMigrationBatch.php, line 121
Class
- S3fsFileMigrationBatch
- Batch migrate files to a S3 bucket.
Namespace
Drupal\s3fs\BatchCode
public function getBatch() {
return [
'operations' => [],
'finished' => [
get_class($this),
'finished',
],
'title' => $this
->t('Copy files to S3'),
'init_message' => $this
->t('The copying process is about to start..'),
'progress_message' => $this
->t('Processed batch @current out of @total.'),
'error_message' => $this
->t('Something wrong happened, please check the logs.'),
];
}