You are here

public function MaestroQueueViewsData::getViewsData in Maestro 3.x

Same name and namespace in other branches
  1. 8.2 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\Entity

Code

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;
}