function JobCheckoutManager::requestTranslation in Translation Management Tool 8
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
bool TRUE if it worked, FALSE if there were any errors of the type error which means that something did go wrong.
2 calls to JobCheckoutManager::requestTranslation()
- JobCheckoutManager::checkoutMultiple in src/
JobCheckoutManager.php - Attempts to check out a number of jobs.
- JobCheckoutManager::doBatchSubmit in src/
JobCheckoutManager.php - Batch callback for submitting a job.
File
- src/
JobCheckoutManager.php, line 329
Class
- JobCheckoutManager
- Provides functionality related to job checkout and submissions.
Namespace
Drupal\tmgmtCode
function requestTranslation(JobInterface $job) {
// Process the translation request.
$job
->requestTranslation();
return tmgmt_write_request_messages($job);
}