You are here

protected function TranslationRequestManager::getSubmitterName in TMGMT Translator Smartling 8.4

1 call to TranslationRequestManager::getSubmitterName()
TranslationRequestManager::createNewTranslationRequest in src/Smartling/Submission/TranslationRequestManager.php
Creates translation request.

File

src/Smartling/Submission/TranslationRequestManager.php, line 44

Class

TranslationRequestManager
Class TranslationRequestManager.

Namespace

Drupal\tmgmt_smartling\Smartling\Submission

Code

protected function getSubmitterName(JobInterface $job) {
  if (PHP_SAPI === 'cli') {
    return 'cron';
  }
  return $job
    ->getOwner()
    ->getAccountName();
}