You are here

public function TeamListBuilder::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()

File

modules/apigee_edge_teams/src/Entity/ListBuilder/TeamListBuilder.php, line 38

Class

TeamListBuilder
General entity listing builder for teams.

Namespace

Drupal\apigee_edge_teams\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' => 'desc',
  ];
  $headers['status'] = [
    'data' => $this
      ->t('Status'),
    'specifier' => 'status',
    'field' => 'status',
  ];
  return $headers + parent::buildHeader();
}