You are here

public function AccessTokenListBuilder::render in Access unpublished 8

Builds the entity listing as renderable array for table.html.twig.

@todo Add a link to add a new item to the #empty text.

Overrides EntityListBuilder::render

1 call to AccessTokenListBuilder::render()
EntityFormAccessTokenListBuilder::render in src/EntityFormAccessTokenListBuilder.php
Builds the entity listing as renderable array for table.html.twig.
1 method overrides AccessTokenListBuilder::render()
EntityFormAccessTokenListBuilder::render in src/EntityFormAccessTokenListBuilder.php
Builds the entity listing as renderable array for table.html.twig.

File

src/AccessTokenListBuilder.php, line 169

Class

AccessTokenListBuilder
Defines a class to build a listing of access token entities.

Namespace

Drupal\access_unpublished

Code

public function render() {
  $build = parent::render();
  $build['table']['#id'] = Html::getUniqueId('access-token-list');
  $build['table']['#attributes']['data-drupal-selector'] = Html::getId('access-token-list');
  return $build;
}