protected function LingotekConfigManagementForm::createBatch in Lingotek Translation 8
Same name and namespace in other branches
- 8.2 src/Form/LingotekConfigManagementForm.php \Drupal\lingotek\Form\LingotekConfigManagementForm::createBatch()
- 4.0.x src/Form/LingotekConfigManagementForm.php \Drupal\lingotek\Form\LingotekConfigManagementForm::createBatch()
- 3.0.x src/Form/LingotekConfigManagementForm.php \Drupal\lingotek\Form\LingotekConfigManagementForm::createBatch()
- 3.1.x src/Form/LingotekConfigManagementForm.php \Drupal\lingotek\Form\LingotekConfigManagementForm::createBatch()
- 3.2.x src/Form/LingotekConfigManagementForm.php \Drupal\lingotek\Form\LingotekConfigManagementForm::createBatch()
- 3.3.x src/Form/LingotekConfigManagementForm.php \Drupal\lingotek\Form\LingotekConfigManagementForm::createBatch()
- 3.4.x src/Form/LingotekConfigManagementForm.php \Drupal\lingotek\Form\LingotekConfigManagementForm::createBatch()
- 3.5.x src/Form/LingotekConfigManagementForm.php \Drupal\lingotek\Form\LingotekConfigManagementForm::createBatch()
- 3.6.x src/Form/LingotekConfigManagementForm.php \Drupal\lingotek\Form\LingotekConfigManagementForm::createBatch()
- 3.7.x src/Form/LingotekConfigManagementForm.php \Drupal\lingotek\Form\LingotekConfigManagementForm::createBatch()
- 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: The language code for the request. NULL if is not applicable.
9 calls to LingotekConfigManagementForm::createBatch()
- LingotekConfigManagementForm::createDisassociateBatch in src/Form/ LingotekConfigManagementForm.php 
- Create and set a disassociate 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.
- LingotekConfigManagementForm::createLanguageTranslationCheckStatusBatch in src/Form/ LingotekConfigManagementForm.php 
- Create and set a check translation status batch for a given language.
File
- src/Form/ LingotekConfigManagementForm.php, line 410 
- Contains \Drupal\Lingotek\Form\LingotekConfigManagementForm.
Class
- LingotekConfigManagementForm
- Form for bulk management of content.
Namespace
Drupal\lingotek\FormCode
protected function createBatch($operation, $values, $title, $language = NULL) {
  $operations = $this
    ->generateOperations($operation, $values, $language);
  $batch = array(
    'title' => $title,
    'operations' => $operations,
    'finished' => [
      $this,
      'batchFinished',
    ],
    'progressive' => TRUE,
  );
  batch_set($batch);
}