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