You are here

public function TMGMTLocalTaskItemViewsController::views_data in Translation Management Tool 7

Defines the result for hook_views_data().

Overrides EntityDefaultViewsController::views_data

File

translators/tmgmt_local/views/tmgmt_local.views.inc, line 83
Contains Views controllers for the translation management local task module.

Class

TMGMTLocalTaskItemViewsController
Views controller class for the translation task item entity.

Code

public function views_data() {
  $data = parent::views_data();
  $data['tmgmt_local_task_item']['operations'] = array(
    'title' => t('Operations'),
    'help' => t('Displays a list of operations which are available for a task item.'),
    'real field' => 'tltiid',
    'field' => array(
      'handler' => 'tmgmt_local_task_handler_field_item_operations',
    ),
  );
  return $data;
}