ConfigEntityMapper::getTypeName

public ConfigEntityMapper::getTypeName()

Returns the name of the type of data the mapper encapsulates.

Return value

string The name of the type of data the mapper encapsulates.

Overrides ConfigNamesMapper::getTypeName

File

core/modules/config_translation/src/ConfigEntityMapper.php, line 206

Class

ConfigEntityMapper
Configuration mapper for configuration entities.

Namespace

Drupal\config_translation

Code

public function getTypeName() {
  $entity_type_info = $this->entityManager->getDefinition($this->entityType);
  return $entity_type_info->getLabel();
}
doc_Drupal
2016-10-29 08:52:48
Comments
Leave a Comment

Please login to continue.