You are here

public function TMGMTDefaultTranslatorPluginController::isAvailable in Translation Management Tool 7

Checks whether a translator is available.

Parameters

TMGMTTranslator $translator: The translator entity.

Return value

boolean TRUE if the translator plugin is available, FALSE otherwise.

Overrides TMGMTTranslatorPluginControllerInterface::isAvailable

1 call to TMGMTDefaultTranslatorPluginController::isAvailable()
TMGMTDefaultTranslatorPluginController::canTranslate in plugin/tmgmt.plugin.translator.inc
Check whether this service can handle a particular translation job.

File

plugin/tmgmt.plugin.translator.inc, line 35
Contains the abstract translator base plugin class.

Class

TMGMTDefaultTranslatorPluginController
Default controller class for service plugins.

Code

public function isAvailable(TMGMTTranslator $translator) {

  // Assume that the translation service is always available.
  return TRUE;
}