public function StatusViewsData::getViewsData in Heartbeat 8
Returns views data for the entity type.
Return value
array Views data in the format of hook_views_data().
Overrides EntityViewsData::getViewsData
File
- modules/
statusmessage/ src/ Entity/ StatusViewsData.php, line 15
Class
- StatusViewsData
- Provides Views data for Status entities.
Namespace
Drupal\statusmessage\EntityCode
public function getViewsData() {
$data = parent::getViewsData();
$data['status']['table']['base'] = array(
'field' => 'id',
'title' => $this
->t('Status'),
'help' => $this
->t('The Status ID.'),
);
return $data;
}