You are here

function tmgmt_file_format_controller in Translation Management Tool 7

Returns the file format plugin controller.

Parameters

$plugin: (Optional) Name of a plugin/extension.

Return value

TMGMTFileFormatInterface Either a specific file format plugin controller instance or an array of available controllers.

3 calls to tmgmt_file_format_controller()
drush_tmgmt_file_tmgmt_translate_import in translators/file/tmgmt_file.drush.inc
Import XLIFF files from a directory or single file.
TMGMTFileTranslatorPluginController::requestTranslation in translators/file/tmgmt_file.plugin.inc
@abstract
tmgmt_file_import_form_submit in translators/file/tmgmt_file.module
Import form submit callback.

File

translators/file/tmgmt_file.module, line 111
Module file of the translation management test module.

Code

function tmgmt_file_format_controller($plugin = NULL) {
  return _tmgmt_plugin_controller('file_format', $plugin);
}