You are here

public function OgMenuInstanceViewsData::getViewsData in Organic Groups Menu (OG Menu) 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/OgMenuInstanceViewsData.php, line 20
Contains \Drupal\og_menu\Entity\OgMenuInstance.

Class

OgMenuInstanceViewsData
Provides Views data for OG Menu instance entities.

Namespace

Drupal\og_menu\Entity

Code

public function getViewsData() {
  $data = parent::getViewsData();
  $data['ogmenu_instance']['table']['base'] = array(
    'field' => 'id',
    'title' => $this
      ->t('OG Menu instance'),
    'help' => $this
      ->t('The OG Menu instance ID.'),
  );
  return $data;
}