public function ScheduledUpdateViewsData::getViewsData in Scheduled Updates 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/ ScheduledUpdateViewsData.php, line 20 - Contains \Drupal\scheduled_updates\Entity\ScheduledUpdate.
Class
- ScheduledUpdateViewsData
- Provides Views data for Scheduled update entities.
Namespace
Drupal\scheduled_updates\EntityCode
public function getViewsData() {
$data = parent::getViewsData();
$data['scheduled_update']['table']['base'] = array(
'field' => 'id',
'title' => $this
->t('Scheduled update'),
'help' => $this
->t('The Scheduled update ID.'),
);
return $data;
}