You are here

public function AccessTokenListBuilder::buildOperations in Access unpublished 8

Builds a renderable list of operation links for the entity.

Parameters

\Drupal\Core\Entity\EntityInterface $entity: The entity on which the linked operations will be performed.

Return value

array A renderable array of operation links.

Overrides EntityListBuilder::buildOperations

See also

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

1 call to AccessTokenListBuilder::buildOperations()
AccessTokenListBuilder::buildRow in src/AccessTokenListBuilder.php
Builds a row for an entity in the entity listing.

File

src/AccessTokenListBuilder.php, line 112

Class

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

Namespace

Drupal\access_unpublished

Code

public function buildOperations(EntityInterface $entity) {
  $build = [
    '#type' => 'operations',
    '#links' => $this
      ->getOperations($entity),
    '#attached' => [
      'library' => [
        'access_unpublished/drupal.access_unpublished.admin',
      ],
    ],
  ];
  return $build;
}