public function TMGMTDefaultTranslatorPluginController::abortTranslation in Translation Management Tool 7
Aborts a translation job.
Parameters
TMGMTJob $job: The job that should have its translation aborted.
Return value
boolean TRUE if the job could be aborted, FALSE otherwise.
Overrides TMGMTTranslatorPluginControllerInterface::abortTranslation
File
- plugin/
tmgmt.plugin.translator.inc, line 56 - Contains the abstract translator base plugin class.
Class
- TMGMTDefaultTranslatorPluginController
- Default controller class for service plugins.
Code
public function abortTranslation(TMGMTJob $job) {
// Assume that we can abort a translation job at any time.
$job
->aborted();
return TRUE;
}