You are here

class TMGMTDefaultSourceViewsController in Translation Management Tool 7

Vies controller class for source plugins.

Hierarchy

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

Namesort descending Modifiers Type Description Overrides
TMGMTDefaultSourceViewsController::views_data public function Defines the result for hook_views_data(). Overrides TMGMTSourceViewsControllerInterface::views_data 1
TMGMTPluginBase::$pluginInfo protected property
TMGMTPluginBase::$pluginType protected property
TMGMTPluginBase::pluginInfo public function Returns the info of the type of the plugin. Overrides TMGMTPluginBaseInterface::pluginInfo
TMGMTPluginBase::pluginType public function Returns the type of the plugin. Overrides TMGMTPluginBaseInterface::pluginType
TMGMTPluginBase::__construct public function Constructor. Overrides TMGMTPluginBaseInterface::__construct