You are here

function tmgmt_translator_ui_controller in Translation Management Tool 7

Get the ui controller class for a given translator plugin.

Parameters

$plugin: (Optional) The machine-readable name of a translator plugin.

Return value

TMGMTTranslatorUIControllerInterface The ui controller object for the given translator plugin or an array containing all available translator plugin controller objects if no plugin name was given.

Related topics

6 calls to tmgmt_translator_ui_controller()
tmgmt_ui_checkout_info in ui/includes/tmgmt_ui.pages.inc
Helper function for retrieving the rendered job checkout information.
tmgmt_ui_checkout_settings_form in ui/includes/tmgmt_ui.pages.inc
Helper function for retrieving the job settings form.
tmgmt_ui_plugin_settings_form in ui/includes/tmgmt_ui.pages.inc
Helper function for retrieving the translator settings form.
tmgmt_ui_translation_review_form in ui/tmgmt_ui.module
Form callback for the job item review form.
tmgmt_ui_translation_review_form_submit in ui/tmgmt_ui.module
Submit callback for the job item review form.

... See full list

File

./tmgmt.module, line 1024
Main module file for the Translation Management module.

Code

function tmgmt_translator_ui_controller($plugin = NULL) {
  return _tmgmt_plugin_controller('translator', $plugin, 'ui', 'TMGMTDefaultTranslatorUIController');
}