You are here

public function SitewideAlertViewsData::getViewsData in Sitewide Alert 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/SitewideAlertViewsData.php, line 15

Class

SitewideAlertViewsData
Provides Views data for Sitewide Alert entities.

Namespace

Drupal\sitewide_alert\Entity

Code

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

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