You are here

function tmgmt_source_views_controller in Translation Management Tool 7

Get the views controller class for a given source plugin.

Parameters

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

Return value

TMGMTSourceViewsControllerInterface The views controller object for the given source plugin or an array containing all available source views controller objects if no plugin name was given.

Related topics

1 call to tmgmt_source_views_controller()
tmgmt_views_data in views/tmgmt.views.inc
Implements hook_views_data().

File

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

Code

function tmgmt_source_views_controller($plugin = NULL) {
  return _tmgmt_plugin_controller('source', $plugin, 'views', 'TMGMTDefaultSourceViewsController');
}