You are here

public function ConfigPagesViewsData::getViewsData in Config Pages 8

Same name and namespace in other branches
  1. 8.3 src/ConfigPagesViewsData.php \Drupal\config_pages\ConfigPagesViewsData::getViewsData()
  2. 8.2 src/ConfigPagesViewsData.php \Drupal\config_pages\ConfigPagesViewsData::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/ConfigPagesViewsData.php, line 15

Class

ConfigPagesViewsData
Provides Views data for Config Pages entities.

Namespace

Drupal\config_pages

Code

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