You are here

public function FieldStorageConfigListBuilder::buildHeader in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/field_ui/src/FieldStorageConfigListBuilder.php \Drupal\field_ui\FieldStorageConfigListBuilder::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

core/modules/field_ui/src/FieldStorageConfigListBuilder.php, line 87

Class

FieldStorageConfigListBuilder
Defines a class to build a listing of fields.

Namespace

Drupal\field_ui

Code

public function buildHeader() {
  $header['id'] = $this
    ->t('Field name');
  $header['entity_type'] = $this
    ->t('Entity type');
  $header['type'] = [
    'data' => $this
      ->t('Field type'),
    'class' => [
      RESPONSIVE_PRIORITY_MEDIUM,
    ],
  ];
  $header['usage'] = $this
    ->t('Used in');
  return $header;
}