You are here

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

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

Create and set a target cancellation batch.

Parameters

array $values: Array of ids to cancel.

string $language: Language code for the request.

1 call to LingotekConfigManagementForm::createTargetCancelBatch()
LingotekConfigManagementForm::submitForm in src/Form/LingotekConfigManagementForm.php
Form submission handler.

File

src/Form/LingotekConfigManagementForm.php, line 732

Class

LingotekConfigManagementForm
Form for bulk management of content.

Namespace

Drupal\lingotek\Form

Code

protected function createTargetCancelBatch($values, $language) {
  $this
    ->createBatch('cancelTarget', $values, $this
    ->t('Cancelling target content from Lingotek service'), $language);
}