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).

function tmgmt_job_request_translation

Requests translations for a job and prints messages which have happened since then.

Parameters

\Drupal\tmgmt\JobInterface $job: The job object for which translations should be requested.

Return value

TRUE if it worked, FALSE if there were any errors of the type error which means that something did go wrong.

Deprecated

Deprecated in 8.x-1.x, use \Drupal\tmgmt\JobCheckoutManager::requestTranslation() instead.

1 call to tmgmt_job_request_translation()
tmgmt_job_checkout_multiple in ./tmgmt.module
Attempts to check out a number of jobs. Performs a number of checks on each job and also allows to alter the behavior through hooks.

File

./tmgmt.module, line 704
Main module file for the Translation Management module.

Code

function tmgmt_job_request_translation(JobInterface $job) {

  // Process the translation request.
  $job
    ->requestTranslation();
  return tmgmt_write_request_messages($job);
}