You are here

public function ConfigEntityMapper::getTypeName in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/config_translation/src/ConfigEntityMapper.php \Drupal\config_translation\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 220

Class

ConfigEntityMapper
Configuration mapper for configuration entities.

Namespace

Drupal\config_translation

Code

public function getTypeName() {
  $entity_type_info = $this->entityTypeManager
    ->getDefinition($this->entityType);
  return $entity_type_info
    ->getLabel();
}