public function PathFileEntityViewsData::getViewsData in Path File 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/ PathFileEntityViewsData.php, line 16
Class
- PathFileEntityViewsData
- Provides Views data for Path file entity entities.
Namespace
Drupal\path_file\EntityCode
public function getViewsData() {
$data = parent::getViewsData();
$data['path_file_entity']['table']['base'] = array(
'field' => 'id',
'title' => $this
->t('Path file entity'),
'help' => $this
->t('The Path file entity ID.'),
);
return $data;
}