You are here

public function ConfigTranslationMapperList::buildRow in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/config_translation/src/Controller/ConfigTranslationMapperList.php \Drupal\config_translation\Controller\ConfigTranslationMapperList::buildRow()
  2. 9 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 88

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