You are here

public function SmartlingTranslatorBeingTested::addSmartlingDirectives in TMGMT Translator Smartling 8.4

Same name and namespace in other branches
  1. 8.3 tests/src/Kernel/SmartlingTranslatorTest.php \Drupal\Tests\tmgmt_smartling\Kernel\SmartlingTranslatorBeingTested::addSmartlingDirectives()

Adds smartling directives to upload parameters.

Array of directives can be altered by `tmgmt_smartling_directives_alter` hook.

Parameters

\Smartling\File\Params\UploadFileParameters $params:

\Drupal\tmgmt\JobInterface $job:

Return value

\Smartling\File\Params\UploadFileParameters

Overrides SmartlingTranslator::addSmartlingDirectives

File

tests/src/Kernel/SmartlingTranslatorTest.php, line 149

Class

SmartlingTranslatorBeingTested

Namespace

Drupal\Tests\tmgmt_smartling\Kernel

Code

public function addSmartlingDirectives(UploadFileParameters $params, JobInterface $job) {
  return parent::addSmartlingDirectives($params, $job);
}