You are here

public function TMGMTTranslator::getController in Translation Management Tool 7

Returns the translator plugin controller of this translator.

Return value

TMGMTTranslatorPluginControllerInterface

9 calls to TMGMTTranslator::getController()
TMGMTTranslator::canTranslate in entity/tmgmt.entity.translator.inc
Check whether this translator can handle a particular translation job.
TMGMTTranslator::getNotAvailableReason in entity/tmgmt.entity.translator.inc
@todo Remove this once http://drupal.org/node/1420364 is done.
TMGMTTranslator::getNotCanTranslateReason in entity/tmgmt.entity.translator.inc
@todo Remove this once http://drupal.org/node/1420364 is done.
TMGMTTranslator::getSetting in entity/tmgmt.entity.translator.inc
Retrieves a setting value from the translator settings. Pulls the default values (if defined) from the plugin controller.
TMGMTTranslator::getSupportedLanguagePairs in entity/tmgmt.entity.translator.inc
Gets the supported language pairs for this translator.

... See full list

File

entity/tmgmt.entity.translator.inc, line 97

Class

TMGMTTranslator
Entity class for the tmgmt_translator entity.

Code

public function getController() {
  if (!empty($this->plugin)) {
    return tmgmt_translator_plugin_controller($this->plugin);
  }
  return FALSE;
}