You are here

public function PetViewsData::getViewsData in Previewable email templates 8

Same name and namespace in other branches
  1. 8.4 src/Entity/PetViewsData.php \Drupal\pet\Entity\PetViewsData::getViewsData()
  2. 8.3 src/Entity/PetViewsData.php \Drupal\pet\Entity\PetViewsData::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/PetViewsData.php, line 21
Contains \Drupal\pet\Entity\PetViewsData.

Class

PetViewsData
Provides Views data for Pet entities.

Namespace

Drupal\pet\Entity

Code

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