function ConfigTranslationMapperList::buildRow

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

Builds a row for a mapper in the mapper listing.

Parameters

\Drupal\config_translation\ConfigMapperInterface $mapper: The mapper.

Return value

array A render array structure of fields for this mapper.

1 call to ConfigTranslationMapperList::buildRow()
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 90

Class

ConfigTranslationMapperList
Defines the configuration translation mapper list.

Namespace

Drupal\config_translation\Controller

Code

public function buildRow(ConfigMapperInterface $mapper) {
    $row['label'] = $mapper->getTypeLabel();
    $row['operations']['data'] = $this->buildOperations($mapper);
    return $row;
}

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