You are here

public function AccessTokenListBuilder::buildHeader in Simple OAuth (OAuth2) & OpenID Connect 8

Builds the header row for the entity listing.

Return value

array A render array structure of header strings.

Overrides EntityListBuilder::buildHeader

See also

\Drupal\Core\Entity\EntityListBuilder::render()

File

src/AccessTokenListBuilder.php, line 21

Class

AccessTokenListBuilder
Defines a class to build a listing of Access Token entities.

Namespace

Drupal\simple_oauth

Code

public function buildHeader() {
  $header['type'] = $this
    ->t('Type');
  $header['user'] = $this
    ->t('Auth User');
  $header['owner'] = $this
    ->t('Owner');
  $header['id'] = $this
    ->t('ID');
  $header['name'] = $this
    ->t('Token');
  $header['resource'] = $this
    ->t('Resource');
  return $header + parent::buildHeader();
}