function tmgmt_source_plugin_controller in Translation Management Tool 7
Get the plugin controller class for a given source plugin.
Parameters
$plugin: (Optional) The machine-readable name of a source plugin.
Return value
TMGMTSourcePluginControllerInterface The controller object for the given source plugin or an array containing all available source plugin controller objects if no plugin name was given.
Related topics
3 calls to tmgmt_source_plugin_controller()
- TMGMTJobItem::getSourceController in entity/
tmgmt.entity.job_item.inc - Returns the plugin controller of the configured plugin.
- tmgmt_source_translatable_item_types in ./
tmgmt.module - Returns an array of translatable item types of a source plugin.
- tmgmt_ui_source_overview_form_defaults in ui/
tmgmt_ui.module - Form callback for the source overview form.
File
- ./
tmgmt.module, line 1150 - Main module file for the Translation Management module.
Code
function tmgmt_source_plugin_controller($plugin = NULL) {
return _tmgmt_plugin_controller('source', $plugin);
}