You are here

public function FieldStorageConfigListBuilder::buildHeader in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/field_ui/src/FieldStorageConfigListBuilder.php \Drupal\field_ui\FieldStorageConfigListBuilder::buildHeader()
  2. 10 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 93

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;
}