protected function LingotekConfigManagementForm::createBatch in Lingotek Translation 3.8.x
Same name and namespace in other branches
- 8 src/Form/LingotekConfigManagementForm.php \Drupal\lingotek\Form\LingotekConfigManagementForm::createBatch()
- 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()
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.
File
- src/
Form/ LingotekConfigManagementForm.php, line 578
Class
- LingotekConfigManagementForm
- Form for bulk management of content.
Namespace
Drupal\lingotek\FormCode
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);
}