You are here

public function AppListBuilder::buildHeader in Apigee Edge 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()

2 calls to AppListBuilder::buildHeader()
AppListBuilder::buildWarningRow in src/Entity/ListBuilder/AppListBuilder.php
Builds a warning row for an app in the entity listing.
TeamAppListBuilder::buildHeader in modules/apigee_edge_teams/src/Entity/ListBuilder/TeamAppListBuilder.php
Builds the header row for the entity listing.
1 method overrides AppListBuilder::buildHeader()
TeamAppListBuilder::buildHeader in modules/apigee_edge_teams/src/Entity/ListBuilder/TeamAppListBuilder.php
Builds the header row for the entity listing.

File

src/Entity/ListBuilder/AppListBuilder.php, line 147

Class

AppListBuilder
General app list builder for developer and team apps.

Namespace

Drupal\apigee_edge\Entity\ListBuilder

Code

public function buildHeader() {
  $headers = [];
  $headers['name'] = [
    'data' => $this
      ->t('@entity_type name', [
      '@entity_type' => ucfirst($this->entityType
        ->getSingularLabel()),
    ]),
    'specifier' => 'displayName',
    'field' => 'displayName',
    'sort' => 'asc',
  ];
  $headers['status'] = [
    'data' => $this
      ->t('Status'),
    'specifier' => 'status',
    'field' => 'status',
  ];
  return $headers + parent::buildHeader();
}