You are here

public function ApiKeyListBuilder::buildRow in Services API Key Authentication 8

Same name and namespace in other branches
  1. 8.2 src/Controller/ApiKeyListBuilder.php \Drupal\services_api_key_auth\Controller\ApiKeyListBuilder::buildRow()
  2. 3.0.x src/Controller/ApiKeyListBuilder.php \Drupal\services_api_key_auth\Controller\ApiKeyListBuilder::buildRow()
  3. 2.0.x src/Controller/ApiKeyListBuilder.php \Drupal\services_api_key_auth\Controller\ApiKeyListBuilder::buildRow()

Builds a row for an entity in the entity listing.

Parameters

\Drupal\Core\Entity\EntityInterface $entity: The entity for this row of the list.

Return value

array A render array structure of fields for this entity.

Overrides EntityListBuilder::buildRow

See also

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

File

src/Controller/ApiKeyListBuilder.php, line 27

Class

ApiKeyListBuilder
Provides a listing of Api key entities.

Namespace

Drupal\services_api_key_auth\Controller

Code

public function buildRow(EntityInterface $entity) {
  $row['id'] = $entity
    ->id();
  $row['key'] = $entity->key;
  $row['user_uuid'] = $entity->user_uuid;
  return $row + parent::buildRow($entity);
}