class TMGMTDefaultSourceViewsController in Translation Management Tool 7
Vies controller class for source plugins.
Hierarchy
- class \TMGMTPluginBase implements TMGMTPluginBaseInterface
- class \TMGMTDefaultSourceViewsController implements TMGMTSourceViewsControllerInterface
Expanded class hierarchy of TMGMTDefaultSourceViewsController
1 string reference to 'TMGMTDefaultSourceViewsController'
- tmgmt_source_views_controller in ./
tmgmt.module - Get the views controller class for a given source plugin.
File
- views/
tmgmt.views.inc, line 150 - Contains Views controllers for the translation management module.
View source
class TMGMTDefaultSourceViewsController extends TMGMTPluginBase implements TMGMTSourceViewsControllerInterface {
/**
* {@inheritdoc}
*/
public function views_data() {
// @todo Implement this in a generic fashion.
/* $key = $this->pluginInfo['something'];
$data[$key]['tmgmt_translatable_types'] = array(
'title' => t('Translatable types'),
'help' => t('Filter translatable elements based on their types.'),
'filter' => array(
'handler' => 'views_handler_filter_in_operator',
'real field' => 'type',
'options callback' => 'tmgmt_source_translatable_item_types',
'options arguments' => array($this->pluginType),
),
); */
return array();
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
TMGMTDefaultSourceViewsController:: |
public | function |
Defines the result for hook_views_data(). Overrides TMGMTSourceViewsControllerInterface:: |
1 |
TMGMTPluginBase:: |
protected | property | ||
TMGMTPluginBase:: |
protected | property | ||
TMGMTPluginBase:: |
public | function |
Returns the info of the type of the plugin. Overrides TMGMTPluginBaseInterface:: |
|
TMGMTPluginBase:: |
public | function |
Returns the type of the plugin. Overrides TMGMTPluginBaseInterface:: |
|
TMGMTPluginBase:: |
public | function |
Constructor. Overrides TMGMTPluginBaseInterface:: |