AccessTokenResourceListBuilder.php in Simple OAuth (OAuth2) & OpenID Connect 8
File
src/AccessTokenResourceListBuilder.php
View source
<?php
namespace Drupal\simple_oauth;
use Drupal\Core\Config\Entity\ConfigEntityListBuilder;
use Drupal\Core\Entity\EntityInterface;
class AccessTokenResourceListBuilder extends ConfigEntityListBuilder {
public function buildHeader() {
$header['label'] = $this
->t('Access Token Resource');
$header['id'] = $this
->t('Machine name');
return $header + parent::buildHeader();
}
public function buildRow(EntityInterface $entity) {
$row['label'] = $this
->getLabel($entity);
$row['id'] = $entity
->id();
return $row + parent::buildRow($entity);
}
}