You are here

public function ConfigEntityMapper::getTypeName in Zircon Profile 8.0

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

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