You are here

public function ConfigTranslationMapperList::buildRow in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 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 95
Contains \Drupal\config_translation\Controller\ConfigTranslationMapperList.

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