You are here

function drush_lingotek_check_upload in Lingotek Translation 3.4.x

Same name and namespace in other branches
  1. 8.2 lingotek.drush.inc \drush_lingotek_check_upload()
  2. 4.0.x lingotek.drush.inc \drush_lingotek_check_upload()
  3. 3.0.x lingotek.drush.inc \drush_lingotek_check_upload()
  4. 3.1.x lingotek.drush.inc \drush_lingotek_check_upload()
  5. 3.2.x lingotek.drush.inc \drush_lingotek_check_upload()
  6. 3.3.x lingotek.drush.inc \drush_lingotek_check_upload()
  7. 3.5.x lingotek.drush.inc \drush_lingotek_check_upload()
  8. 3.6.x lingotek.drush.inc \drush_lingotek_check_upload()
  9. 3.7.x lingotek.drush.inc \drush_lingotek_check_upload()
  10. 3.8.x lingotek.drush.inc \drush_lingotek_check_upload()

File

./lingotek.drush.inc, line 112
Drush 8 integration for Lingotek.

Code

function drush_lingotek_check_upload($entity_type_id, $entity_id) {
  $facade = new Drush8IoWrapper();

  /** @var \Drupal\lingotek\Cli\LingotekCliService $cliService */
  $cliService = \Drupal::service('lingotek.cli_service');
  $cliService
    ->setupOutput($facade);
  $cliService
    ->setLogger($facade);
  return $cliService
    ->checkUpload($entity_type_id, $entity_id);
}