You are here

public function FieldConfigListBuilder::buildHeader in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/field_ui/src/FieldConfigListBuilder.php \Drupal\field_ui\FieldConfigListBuilder::buildHeader()
  2. 9 core/modules/field_ui/src/FieldConfigListBuilder.php \Drupal\field_ui\FieldConfigListBuilder::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/FieldConfigListBuilder.php, line 119

Class

FieldConfigListBuilder
Provides lists of field config entities.

Namespace

Drupal\field_ui

Code

public function buildHeader() {
  $header = [
    'label' => $this
      ->t('Label'),
    'field_name' => [
      'data' => $this
        ->t('Machine name'),
      'class' => [
        RESPONSIVE_PRIORITY_MEDIUM,
      ],
    ],
    'field_type' => $this
      ->t('Field type'),
  ];
  return $header + parent::buildHeader();
}