You are here

public function ConfigTranslationFieldListBuilder::buildHeader in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/config_translation/src/Controller/ConfigTranslationFieldListBuilder.php \Drupal\config_translation\Controller\ConfigTranslationFieldListBuilder::buildHeader()
  2. 9 core/modules/config_translation/src/Controller/ConfigTranslationFieldListBuilder.php \Drupal\config_translation\Controller\ConfigTranslationFieldListBuilder::buildHeader()

Builds the header row for the entity listing.

Return value

array A render array structure of header strings.

Overrides ConfigTranslationEntityListBuilder::buildHeader

See also

\Drupal\Core\Entity\EntityListBuilder::render()

File

core/modules/config_translation/src/Controller/ConfigTranslationFieldListBuilder.php, line 143

Class

ConfigTranslationFieldListBuilder
Defines the config translation list builder for field entities.

Namespace

Drupal\config_translation\Controller

Code

public function buildHeader() {
  $header['label'] = $this
    ->t('Field');
  if ($this
    ->displayBundle()) {
    $header['bundle'] = $this->baseEntityInfo
      ->getBundleLabel() ?: $this
      ->t('Bundle');
  }
  return $header + parent::buildHeader();
}