You are here

public function MaestroProcessViewsData::getViewsData in Maestro 8.2

Same name and namespace in other branches
  1. 3.x src/Entity/MaestroProcessViewsData.php \Drupal\maestro\Entity\MaestroProcessViewsData::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/MaestroProcessViewsData.php, line 16

Class

MaestroProcessViewsData
Provides Views data for the Maestro Process Entity.

Namespace

Drupal\maestro\Entity

Code

public function getViewsData() {
  $data = parent::getViewsData();
  $data['maestro_process']['table']['base'] = [
    'field' => 'id',
    'title' => $this
      ->t('Maestro Process'),
    'help' => $this
      ->t('The Maestro Process entity ID.'),
  ];
  return $data;
}