You are here

public function OperationViewsData::getViewsData in GatherContent 8.4

Returns views data for the entity type.

Return value

array Views data in the format of hook_views_data().

Overrides EntityViewsData::getViewsData

File

gathercontent_ui/src/Entity/OperationViewsData.php, line 16

Class

OperationViewsData
Provides Views data for Gathercontent operation entities.

Namespace

Drupal\gathercontent_ui\Entity

Code

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