You are here

public function GathercontentOperationViewsData::getViewsData in GatherContent 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/GathercontentOperationViewsData.php, line 16

Class

GathercontentOperationViewsData
Provides Views data for Gathercontent operation entities.

Namespace

Drupal\gathercontent\Entity

Code

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