ConfigEntityMapper::getTypeLabel

public ConfigEntityMapper::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 ConfigNamesMapper::getTypeLabel

File

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

Class

ConfigEntityMapper
Configuration mapper for configuration entities.

Namespace

Drupal\config_translation

Code

1
2
3
4
public function getTypeLabel() {
  $entityType = $this->entityManager->getDefinition($this->entityType);
  return $entityType->getLabel();
}
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.