ConfigTranslationFieldListBuilder::setMapperDefinition

public ConfigTranslationFieldListBuilder::setMapperDefinition($mapper_definition)

Sets the config translation mapper definition.

Parameters

mixed $mapper_definition: The plugin definition of the config translation mapper.

Return value

$this

Overrides ConfigTranslationEntityListBuilder::setMapperDefinition

File

core/modules/config_translation/src/Controller/ConfigTranslationFieldListBuilder.php, line 75

Class

ConfigTranslationFieldListBuilder
Defines the config translation list builder for field entities.

Namespace

Drupal\config_translation\Controller

Code

public function setMapperDefinition($mapper_definition) {
  $this->baseEntityType = $mapper_definition['base_entity_type'];
  $this->baseEntityInfo = $this->entityManager->getDefinition($this->baseEntityType);
  $this->baseEntityBundles = $this->entityManager->getBundleInfo($this->baseEntityType);
  return $this;
}
doc_Drupal
2016-10-29 08:54:55
Comments
Leave a Comment

Please login to continue.