You are here

public function SiteSettingEntityViewsData::getViewsData in Site Settings and Labels 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/SiteSettingEntityViewsData.php, line 16

Class

SiteSettingEntityViewsData
Provides Views data for Site Setting entities.

Namespace

Drupal\site_settings\Entity

Code

public function getViewsData() {
  $data = parent::getViewsData();
  $data['site_setting_entity_field_data']['table']['base'] = [
    'field' => 'id',
    'title' => $this
      ->t('Site Setting'),
    'help' => $this
      ->t('The Site Setting ID.'),
  ];
  return $data;
}