public function AccessTokenViewsData::getViewsData in Simple OAuth (OAuth2) & OpenID Connect 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/ AccessTokenViewsData.php, line 15
Class
- AccessTokenViewsData
- Provides Views data for Access Token entities.
Namespace
Drupal\simple_oauth\EntityCode
public function getViewsData() {
$data = parent::getViewsData();
$data['access_token']['table']['base'] = array(
'field' => 'id',
'title' => $this
->t('Access Token'),
'help' => $this
->t('The Access Token ID.'),
);
return $data;
}