You are here

public function SimplemetaEntityViewsData::getViewsData in Simple Meta 8

Same name and namespace in other branches
  1. 8.2 src/Entity/SimplemetaEntityViewsData.php \Drupal\simplemeta\Entity\SimplemetaEntityViewsData::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/SimplemetaEntityViewsData.php, line 15

Class

SimplemetaEntityViewsData
Provides Views data for SimpleMeta entities.

Namespace

Drupal\simplemeta\Entity

Code

public function getViewsData() {
  $data = parent::getViewsData();

  // Additional information for Views integration, such as table joins, can be
  // put here.
  return $data;
}