public function TMGMTFileTranslatorPluginController::canTranslate in Translation Management Tool 7
Check whether this service can handle a particular translation job.
Parameters
TMGMTTranslator $translator: The TMGMTTranslator entity that should handle the translation.
TMGMTJob $job: The TMGMTJob entity that should be translated.
Return value
boolean TRUE if the job can be processed and translated, FALSE otherwise.
Overrides TMGMTDefaultTranslatorPluginController::canTranslate
File
- translators/
file/ tmgmt_file.plugin.inc, line 16 - Provides the file translator plugin controller.
Class
- TMGMTFileTranslatorPluginController
- File translator plugin controller.
Code
public function canTranslate(TMGMTTranslator $translator, TMGMTJob $job) {
// Anything can be exported.
return TRUE;
}