private static function S3fsFileMigrationBatch::getCopyOperationMessage in S3 File System 4.0.x
Same name and namespace in other branches
- 8.3 src/Batch/S3fsFileMigrationBatch.php \Drupal\s3fs\Batch\S3fsFileMigrationBatch::getCopyOperationMessage()
Copy Operation progress message generator.
Parameters
array|\DrushBatchContext $context: Batch context.
Return value
\Drupal\Core\StringTranslation\TranslatableMarkup Markup containing progress message.
1 call to S3fsFileMigrationBatch::getCopyOperationMessage()
- S3fsFileMigrationBatch::updateProgress in src/
Batch/ S3fsFileMigrationBatch.php - Updates the progress counter and display.
File
- src/
Batch/ S3fsFileMigrationBatch.php, line 232
Class
- S3fsFileMigrationBatch
- Batch migrate files to a S3 bucket.
Namespace
Drupal\s3fs\BatchCode
private static function getCopyOperationMessage($context) {
return new TranslatableMarkup('@percent_progress% (@progress/@total) time elapsed @elapsed_time (hh:mm:ss)', [
'@percent_progress' => $context['results']['percent_progress'],
'@progress' => $context['results']['progress'],
'@total' => $context['results']['total'],
'@elapsed_time' => static::getElapsedTimeFormatted($context['results']['time_start']),
]);
}