public function ConfigPagesViewsData::getViewsData in Config Pages 8
Same name and namespace in other branches
- 8.3 src/ConfigPagesViewsData.php \Drupal\config_pages\ConfigPagesViewsData::getViewsData()
- 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_pagesCode
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;
}