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