function ConfigEntityMapper::getTypeLabel

Overrides ConfigNamesMapper::getTypeLabel

1 method overrides ConfigEntityMapper::getTypeLabel()
ConfigFieldMapper::getTypeLabel in core/modules/config_translation/src/ConfigFieldMapper.php
Returns the label of the type of data the mapper encapsulates.

File

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

Class

ConfigEntityMapper
Configuration mapper for configuration entities.

Namespace

Drupal\config_translation

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.