You are here

protected function LingotekManagementFormBase::createUploadBatch in Lingotek Translation 3.4.x

Same name and namespace in other branches
  1. 8.2 src/Form/LingotekManagementFormBase.php \Drupal\lingotek\Form\LingotekManagementFormBase::createUploadBatch()
  2. 4.0.x src/Form/LingotekManagementFormBase.php \Drupal\lingotek\Form\LingotekManagementFormBase::createUploadBatch()
  3. 3.0.x src/Form/LingotekManagementFormBase.php \Drupal\lingotek\Form\LingotekManagementFormBase::createUploadBatch()
  4. 3.1.x src/Form/LingotekManagementFormBase.php \Drupal\lingotek\Form\LingotekManagementFormBase::createUploadBatch()
  5. 3.2.x src/Form/LingotekManagementFormBase.php \Drupal\lingotek\Form\LingotekManagementFormBase::createUploadBatch()
  6. 3.3.x src/Form/LingotekManagementFormBase.php \Drupal\lingotek\Form\LingotekManagementFormBase::createUploadBatch()
  7. 3.5.x src/Form/LingotekManagementFormBase.php \Drupal\lingotek\Form\LingotekManagementFormBase::createUploadBatch()
  8. 3.6.x src/Form/LingotekManagementFormBase.php \Drupal\lingotek\Form\LingotekManagementFormBase::createUploadBatch()
  9. 3.7.x src/Form/LingotekManagementFormBase.php \Drupal\lingotek\Form\LingotekManagementFormBase::createUploadBatch()
  10. 3.8.x src/Form/LingotekManagementFormBase.php \Drupal\lingotek\Form\LingotekManagementFormBase::createUploadBatch()

Create and set an upload batch.

Parameters

array $values: Array of ids to upload.

string $job_id: (Optional) The job ID to be used. NULL if is not applicable.

1 call to LingotekManagementFormBase::createUploadBatch()
LingotekManagementFormBase::submitForm in src/Form/LingotekManagementFormBase.php
Form submission handler.

File

src/Form/LingotekManagementFormBase.php, line 740

Class

LingotekManagementFormBase
Form for bulk management of content.

Namespace

Drupal\lingotek\Form

Code

protected function createUploadBatch($values, $job_id = NULL) {
  $this
    ->createBatch('uploadDocument', $values, $this
    ->t('Uploading content to Lingotek service'), NULL, $job_id);
}