public function EventEnrollmentViewsData::getViewsData in Open Social 8
Same name and namespace in other branches
- 8.9 modules/social_features/social_event/src/Entity/EventEnrollmentViewsData.php \Drupal\social_event\Entity\EventEnrollmentViewsData::getViewsData()
- 8.2 modules/social_features/social_event/src/Entity/EventEnrollmentViewsData.php \Drupal\social_event\Entity\EventEnrollmentViewsData::getViewsData()
- 8.3 modules/social_features/social_event/src/Entity/EventEnrollmentViewsData.php \Drupal\social_event\Entity\EventEnrollmentViewsData::getViewsData()
- 8.4 modules/social_features/social_event/src/Entity/EventEnrollmentViewsData.php \Drupal\social_event\Entity\EventEnrollmentViewsData::getViewsData()
- 8.5 modules/social_features/social_event/src/Entity/EventEnrollmentViewsData.php \Drupal\social_event\Entity\EventEnrollmentViewsData::getViewsData()
- 8.6 modules/social_features/social_event/src/Entity/EventEnrollmentViewsData.php \Drupal\social_event\Entity\EventEnrollmentViewsData::getViewsData()
- 8.7 modules/social_features/social_event/src/Entity/EventEnrollmentViewsData.php \Drupal\social_event\Entity\EventEnrollmentViewsData::getViewsData()
- 8.8 modules/social_features/social_event/src/Entity/EventEnrollmentViewsData.php \Drupal\social_event\Entity\EventEnrollmentViewsData::getViewsData()
- 10.3.x modules/social_features/social_event/src/Entity/EventEnrollmentViewsData.php \Drupal\social_event\Entity\EventEnrollmentViewsData::getViewsData()
- 10.0.x modules/social_features/social_event/src/Entity/EventEnrollmentViewsData.php \Drupal\social_event\Entity\EventEnrollmentViewsData::getViewsData()
- 10.1.x modules/social_features/social_event/src/Entity/EventEnrollmentViewsData.php \Drupal\social_event\Entity\EventEnrollmentViewsData::getViewsData()
- 10.2.x modules/social_features/social_event/src/Entity/EventEnrollmentViewsData.php \Drupal\social_event\Entity\EventEnrollmentViewsData::getViewsData()
Returns views data for the entity type.
Return value
array Views data in the format of hook_views_data().
Overrides EntityViewsData::getViewsData
File
- modules/
social_features/ social_event/ src/ Entity/ EventEnrollmentViewsData.php, line 16
Class
- EventEnrollmentViewsData
- Provides Views data for Event enrollment entities.
Namespace
Drupal\social_event\EntityCode
public function getViewsData() {
$data = parent::getViewsData();
$data['event_enrollment_field_data']['table']['base'] = [
'field' => 'id',
'title' => $this
->t('Event enrollment'),
'help' => $this
->t('The Event enrollment ID.'),
];
return $data;
}