You are here

public function OpignoAnswerViewsData::getViewsData in Opigno module 8

Same name and namespace in other branches
  1. 3.x src/Entity/OpignoAnswerViewsData.php \Drupal\opigno_module\Entity\OpignoAnswerViewsData::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/OpignoAnswerViewsData.php, line 15

Class

OpignoAnswerViewsData
Provides Views data for Answer entities.

Namespace

Drupal\opigno_module\Entity

Code

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

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