You are here

public function ApiKeyListBuilder::buildHeader 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::buildHeader()
  2. 3.0.x src/Controller/ApiKeyListBuilder.php \Drupal\services_api_key_auth\Controller\ApiKeyListBuilder::buildHeader()
  3. 2.0.x src/Controller/ApiKeyListBuilder.php \Drupal\services_api_key_auth\Controller\ApiKeyListBuilder::buildHeader()

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/Controller/ApiKeyListBuilder.php, line 16

Class

ApiKeyListBuilder
Provides a listing of Api key entities.

Namespace

Drupal\services_api_key_auth\Controller

Code

public function buildHeader() {
  $header['id'] = $this
    ->t('Machine name');
  $header['key'] = $this
    ->t('API Key');
  $header['user_uuid'] = $this
    ->t('User UUID');
  return $header + parent::buildHeader();
}