public function MaestroQueueViewsData::getViewsData in Maestro 8.2
Same name and namespace in other branches
- 3.x src/Entity/MaestroQueueViewsData.php \Drupal\maestro\Entity\MaestroQueueViewsData::getViewsData()
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/ MaestroQueueViewsData.php, line 16
Class
- MaestroQueueViewsData
- Provides Views data for the Maestro Queue Entity.
Namespace
Drupal\maestro\EntityCode
public function getViewsData() {
$data = parent::getViewsData();
$data['maestro_queue']['table']['base'] = [
'field' => 'id',
'title' => $this
->t('Maestro Queue'),
'help' => $this
->t('The Maestro Queue entity ID.'),
];
return $data;
}