public function LocalTaskItemViewsData::getViewsData in Translation Management Tool 8
Returns views data for the entity type.
Return value
array Views data in the format of hook_views_data().
Overrides EntityViewsData::getViewsData
File
- translators/
tmgmt_local/ src/ Entity/ ViewsData/ LocalTaskItemViewsData.php, line 15
Class
- LocalTaskItemViewsData
- Provides the views data for the local task item entity type.
Namespace
Drupal\tmgmt_local\Entity\ViewsDataCode
public function getViewsData() {
$data = parent::getViewsData();
$data['tmgmt_local_task_item']['status'] = array(
'title' => t('Status'),
'help' => t('Display the status of the task item.'),
'field' => array(
'id' => 'tmgmt_local_task_item_status',
),
);
$data['tmgmt_local_task_item']['progress'] = array(
'title' => t('Progress'),
'help' => t('Displays the progress of a task item.'),
'real field' => 'tltiid',
'field' => array(
'id' => 'tmgmt_local_progress',
),
);
$data['tmgmt_local_task_item']['word_count'] = array(
'title' => t('Words'),
'help' => t('Displays the word count of a task item.'),
'real field' => 'tltiid',
'field' => array(
'id' => 'tmgmt_local_wordcount',
),
);
return $data;
}