You are here

protected function LingotekManagementFormBase::createLanguageRequestTranslationBatch in Lingotek Translation 3.1.x

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

Create and set a request translations batch for all languages.

Parameters

array $values: Array of ids to upload.

string $language: Language code for the request.

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

File

src/Form/LingotekManagementFormBase.php, line 805

Class

LingotekManagementFormBase
Form for bulk management of content.

Namespace

Drupal\lingotek\Form

Code

protected function createLanguageRequestTranslationBatch($values, $language) {
  $this
    ->createBatch('requestTranslation', $values, $this
    ->t('Requesting translations to Lingotek service.'), $language);
}