You are here

public function JsonapiResourceConfigListBuilder::buildHeader in JSON:API Extras 8

Same name and namespace in other branches
  1. 8.3 src/JsonapiResourceConfigListBuilder.php \Drupal\jsonapi_extras\JsonapiResourceConfigListBuilder::buildHeader()
  2. 8.2 src/JsonapiResourceConfigListBuilder.php \Drupal\jsonapi_extras\JsonapiResourceConfigListBuilder::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/JsonapiResourceConfigListBuilder.php, line 65

Class

JsonapiResourceConfigListBuilder
Provides a listing of JSON API Resource Config entities.

Namespace

Drupal\jsonapi_extras

Code

public function buildHeader() {
  $header = [
    'name' => $this
      ->t('Name'),
    'entity_type' => $this
      ->t('Entity type'),
    'bundle' => $this
      ->t('Bundle'),
    'path' => $this
      ->t('Path'),
    'status' => $this
      ->t('Status'),
    'state' => $this
      ->t('State'),
    'operations' => $this
      ->t('Operations'),
  ];
  return $header + parent::buildHeader();
}