public function ConfigFieldMapper::getTypeLabel in Drupal 9
Same name and namespace in other branches
- 8 core/modules/config_translation/src/ConfigFieldMapper.php \Drupal\config_translation\ConfigFieldMapper::getTypeLabel()
Returns the label of the type of data the mapper encapsulates.
Return value
string The label of the type of data the mapper encapsulates.
Overrides ConfigEntityMapper::getTypeLabel
File
- core/
modules/ config_translation/ src/ ConfigFieldMapper.php, line 45
Class
- ConfigFieldMapper
- Configuration mapper for fields.
Namespace
Drupal\config_translationCode
public function getTypeLabel() {
$base_entity_info = $this->entityTypeManager
->getDefinition($this->pluginDefinition['base_entity_type']);
return $this
->t('@label fields', [
'@label' => $base_entity_info
->getLabel(),
]);
}