function tmgmt_translator_plugin_controller in Translation Management Tool 7
Determines the controller class for a given service plugin.
Parameters
$plugin: (Optional) The machine-readable name of a service plugin.
Return value
array|TMGMTTranslatorPluginControllerInterface
- If the translator exists the controller object for the given source plugin or an array containing all available translator plugin controller objects if no plugin name was given.
- Array of existing Translators if a translator with given name does not exists.
Related topics
2 calls to tmgmt_translator_plugin_controller()
- TMGMTDefaultTranslatorUIController::pluginSettingsForm in plugin/
tmgmt.ui.translator.inc - Form callback for the plugin settings form.
- TMGMTTranslator::getController in entity/
tmgmt.entity.translator.inc - Returns the translator plugin controller of this translator.
File
- ./
tmgmt.module, line 1009 - Main module file for the Translation Management module.
Code
function tmgmt_translator_plugin_controller($plugin = NULL) {
return _tmgmt_plugin_controller('translator', $plugin);
}