function ConfigTranslationFieldListBuilder::buildHeader

Same name in other branches
  1. 9 core/modules/config_translation/src/Controller/ConfigTranslationFieldListBuilder.php \Drupal\config_translation\Controller\ConfigTranslationFieldListBuilder::buildHeader()
  2. 8.9.x core/modules/config_translation/src/Controller/ConfigTranslationFieldListBuilder.php \Drupal\config_translation\Controller\ConfigTranslationFieldListBuilder::buildHeader()
  3. 10 core/modules/config_translation/src/Controller/ConfigTranslationFieldListBuilder.php \Drupal\config_translation\Controller\ConfigTranslationFieldListBuilder::buildHeader()

Overrides ConfigTranslationEntityListBuilder::buildHeader

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.