You are here

protected function LingotekConfigManagementForm::createBatch in Lingotek Translation 3.4.x

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

Performs an operation to several values in a batch.

Parameters

string $operation: The method in this object we need to call.

array $values: Array of ids to process.

string $title: The title for the batch progress.

string $language: (Optional) The language code for the request. NULL if is not applicable.

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

11 calls to LingotekConfigManagementForm::createBatch()
LingotekConfigManagementForm::createCancelBatch in src/Form/LingotekConfigManagementForm.php
Create and set a cancellation batch.
LingotekConfigManagementForm::createChangeProfileBatch in src/Form/LingotekConfigManagementForm.php
Create and set a profile change batch.
LingotekConfigManagementForm::createDownloadBatch in src/Form/LingotekConfigManagementForm.php
Create and set a request target and download batch for all languages.
LingotekConfigManagementForm::createLanguageDownloadBatch in src/Form/LingotekConfigManagementForm.php
Create and set a request target and download batch for a given language.
LingotekConfigManagementForm::createLanguageRequestTranslationBatch in src/Form/LingotekConfigManagementForm.php
Create and set a request translations batch for all languages.

... See full list

File

src/Form/LingotekConfigManagementForm.php, line 576

Class

LingotekConfigManagementForm
Form for bulk management of content.

Namespace

Drupal\lingotek\Form

Code

protected function createBatch($operation, $values, $title, $language = NULL, $job_id = NULL) {
  $operations = $this
    ->generateOperations($operation, $values, $language, $job_id);
  $batch = [
    'title' => $title,
    'operations' => $operations,
    'finished' => [
      $this,
      'batchFinished',
    ],
    'progressive' => TRUE,
  ];
  batch_set($batch);
}