function drush_lingotek_check_upload in Lingotek Translation 3.4.x
Same name and namespace in other branches
- 8.2 lingotek.drush.inc \drush_lingotek_check_upload()
- 4.0.x lingotek.drush.inc \drush_lingotek_check_upload()
- 3.0.x lingotek.drush.inc \drush_lingotek_check_upload()
- 3.1.x lingotek.drush.inc \drush_lingotek_check_upload()
- 3.2.x lingotek.drush.inc \drush_lingotek_check_upload()
- 3.3.x lingotek.drush.inc \drush_lingotek_check_upload()
- 3.5.x lingotek.drush.inc \drush_lingotek_check_upload()
- 3.6.x lingotek.drush.inc \drush_lingotek_check_upload()
- 3.7.x lingotek.drush.inc \drush_lingotek_check_upload()
- 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);
}