class TMGMTJobItemViewsController in Translation Management Tool 7
Views controller class for the job item entity.
Hierarchy
- class \EntityDefaultViewsController
- class \TMGMTJobItemViewsController
Expanded class hierarchy of TMGMTJobItemViewsController
1 string reference to 'TMGMTJobItemViewsController'
- tmgmt_entity_info in ./
tmgmt.module - Implements hook_entity_info().
File
- views/
tmgmt.views.inc, line 22 - Contains Views controllers for the translation management module.
View source
class TMGMTJobItemViewsController extends EntityDefaultViewsController {
/**
* {@inheritdoc}
*/
public function views_data() {
$data = parent::views_data();
$data['tmgmt_job_item']['label'] = array(
'title' => t('Label'),
'help' => t('Displays a label of the job item.'),
'field' => array(
'handler' => 'tmgmt_handler_field_tmgmt_entity_label',
),
);
$data['tmgmt_job_item']['type'] = array(
'title' => t('Type'),
'help' => t('Displays a type of the job item.'),
'field' => array(
'handler' => 'tmgmt_handler_field_tmgmt_job_item_type',
),
);
$data['tmgmt_job_item']['progress'] = array(
'title' => t('Progress'),
'help' => t('Displays the progress of a job item.'),
'real field' => 'tjiid',
'field' => array(
'handler' => 'tmgmt_handler_field_tmgmt_progress',
),
);
$data['tmgmt_job_item']['operations'] = array(
'title' => t('Operations'),
'help' => t('Displays a list of options which are available for a job item.'),
'real field' => 'tjiid',
'field' => array(
'handler' => 'tmgmt_handler_field_tmgmt_job_item_operations',
),
);
return $data;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
EntityDefaultViewsController:: |
protected | property | ||
EntityDefaultViewsController:: |
public | function | Determines the handler to use for a relationship to an entity type. | |
EntityDefaultViewsController:: |
protected | function | Comes up with views information based on the given schema and property info. | |
EntityDefaultViewsController:: |
public static | function | A callback returning property options, suitable to be used as views options callback. | |
EntityDefaultViewsController:: |
protected | function | Try to come up with some views fields with the help of the schema and the entity property information. | |
EntityDefaultViewsController:: |
protected | function | Try to come up with some views fields with the help of the revision schema and the entity property information. | |
EntityDefaultViewsController:: |
public | function | ||
TMGMTJobItemViewsController:: |
public | function |
Defines the result for hook_views_data(). Overrides EntityDefaultViewsController:: |