You are here

public function SimpleMegaMenuViewsData::getViewsData in Simple Mega Menu 8

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

Class

SimpleMegaMenuViewsData
Provides Views data for Simple mega menu entities.

Namespace

Drupal\simple_megamenu\Entity

Code

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

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