function ConfigEntityMapper::getTypeLabel
Same name and namespace in other branches
- 9 core/modules/config_translation/src/ConfigEntityMapper.php \Drupal\config_translation\ConfigEntityMapper::getTypeLabel()
- 8.9.x core/modules/config_translation/src/ConfigEntityMapper.php \Drupal\config_translation\ConfigEntityMapper::getTypeLabel()
- 10 core/modules/config_translation/src/ConfigEntityMapper.php \Drupal\config_translation\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 189
Class
- ConfigEntityMapper
- Configuration mapper for configuration entities.
Namespace
Drupal\config_translationCode
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.