function ConfigTranslationMapperList::buildHeader

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

Builds the header row for the mapper listing.

Return value

array A render array structure of header strings.

1 call to ConfigTranslationMapperList::buildHeader()
ConfigTranslationMapperList::render in core/modules/config_translation/src/Controller/ConfigTranslationMapperList.php
Builds the mappers as a renderable array for table.html.twig.

File

core/modules/config_translation/src/Controller/ConfigTranslationMapperList.php, line 100

Class

ConfigTranslationMapperList
Defines the configuration translation mapper list.

Namespace

Drupal\config_translation\Controller

Code

public function buildHeader() {
    $row['Label'] = $this->t('Label');
    $row['operations'] = $this->t('Operations');
    return $row;
}

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