You are here

public function GathercontentOperationItemViewsData::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/GathercontentOperationItemViewsData.php, line 16

Class

GathercontentOperationItemViewsData
Provides Views data for Gathercontent operation item entities.

Namespace

Drupal\gathercontent\Entity

Code

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