You are here

function tmgmt_smartling_download_file_submit in TMGMT Translator Smartling 8.3

Same name and namespace in other branches
  1. 8.4 tmgmt_smartling.module \tmgmt_smartling_download_file_submit()
  2. 8 tmgmt_smartling.module \tmgmt_smartling_download_file_submit()
  3. 8.2 tmgmt_smartling.module \tmgmt_smartling_download_file_submit()
1 string reference to 'tmgmt_smartling_download_file_submit'
SmartlingTranslatorUi::checkoutInfo in src/SmartlingTranslatorUi.php
Retrieves information about a translation job.

File

./tmgmt_smartling.module, line 27
Contains

Code

function tmgmt_smartling_download_file_submit(array &$form, FormStateInterface $form_state) {

  /* @var \Drupal\tmgmt\Entity\Job $job */
  $job = $form_state
    ->getFormObject()
    ->getEntity();

  /* @var \Drupal\tmgmt_smartling\Smartling\SmartlingApi $smartlingApi */
  tmgmt_smartling_download_file($job);
}