You are here

protected function LingotekBatchController::getUploadOperations in Lingotek Translation 3.0.x

Same name and namespace in other branches
  1. 8 src/Controller/LingotekBatchController.php \Drupal\lingotek\Controller\LingotekBatchController::getUploadOperations()
  2. 8.2 src/Controller/LingotekBatchController.php \Drupal\lingotek\Controller\LingotekBatchController::getUploadOperations()
  3. 4.0.x src/Controller/LingotekBatchController.php \Drupal\lingotek\Controller\LingotekBatchController::getUploadOperations()
  4. 3.1.x src/Controller/LingotekBatchController.php \Drupal\lingotek\Controller\LingotekBatchController::getUploadOperations()
  5. 3.2.x src/Controller/LingotekBatchController.php \Drupal\lingotek\Controller\LingotekBatchController::getUploadOperations()
  6. 3.3.x src/Controller/LingotekBatchController.php \Drupal\lingotek\Controller\LingotekBatchController::getUploadOperations()
  7. 3.4.x src/Controller/LingotekBatchController.php \Drupal\lingotek\Controller\LingotekBatchController::getUploadOperations()
  8. 3.5.x src/Controller/LingotekBatchController.php \Drupal\lingotek\Controller\LingotekBatchController::getUploadOperations()
  9. 3.6.x src/Controller/LingotekBatchController.php \Drupal\lingotek\Controller\LingotekBatchController::getUploadOperations()
  10. 3.7.x src/Controller/LingotekBatchController.php \Drupal\lingotek\Controller\LingotekBatchController::getUploadOperations()
  11. 3.8.x src/Controller/LingotekBatchController.php \Drupal\lingotek\Controller\LingotekBatchController::getUploadOperations()
1 call to LingotekBatchController::getUploadOperations()
LingotekBatchController::uploadSingle in src/Controller/LingotekBatchController.php

File

src/Controller/LingotekBatchController.php, line 76

Class

LingotekBatchController

Namespace

Drupal\lingotek\Controller

Code

protected function getUploadOperations($entity_type, $entity_ids) {
  $operations = [];
  if (is_array($entity_ids)) {
    foreach ($entity_ids as $id) {
      $operations[] = [
        'lingotek_operation_content_upload',
        [
          $entity_type,
          $id,
        ],
      ];
    }
  }
  return $operations;
}