Error message

  • Warning: count(): Parameter must be an array or an object that implements Countable in _api_make_match_member_link() (line 1230 of /home/projects/api/www/sites/all/modules/api/api.formatting.inc).
  • Warning: count(): Parameter must be an array or an object that implements Countable in _api_make_match_member_link() (line 1230 of /home/projects/api/www/sites/all/modules/api/api.formatting.inc).

public function TranslatorPluginInterface::requestTranslation

@abstract

Submits the translation request and sends it to the translation provider.

During the translation process, Job::getItems() will only return job items that are not already fully translated.

Parameters

\Drupal\tmgmt\JobInterface $job: The job that should be submitted.

See also

hook_tmgmt_job_before_request_translation()

hook_tmgmt_job_after_request_translation()

Related topics

3 methods override TranslatorPluginInterface::requestTranslation()
FileTranslator::requestTranslation in translators/tmgmt_file/src/Plugin/tmgmt/Translator/FileTranslator.php
@abstract
LocalTranslator::requestTranslation in translators/tmgmt_local/src/Plugin/tmgmt/Translator/LocalTranslator.php
@abstract
TestTranslator::requestTranslation in tmgmt_test/src/Plugin/tmgmt/Translator/TestTranslator.php
@abstract

File

src/TranslatorPluginInterface.php, line 126

Class

TranslatorPluginInterface
Interface for service plugin controllers.

Namespace

Drupal\tmgmt

Code

public function requestTranslation(JobInterface $job);