public function OperationItemViewsData::getViewsData in GatherContent 8.3
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/ OperationItemViewsData.php, line 16
Class
- OperationItemViewsData
- Provides Views data for Gathercontent operation item entities.
Namespace
Drupal\gathercontent\EntityCode
public function getViewsData() {
$data = parent::getViewsData();
$data['gathercontent_operation_item']['table']['base'] = [
'field' => 'id',
'title' => $this
->t('Gathercontent operation item'),
'help' => $this
->t('The Gathercontent operation item ID.'),
];
return $data;
}