ConfigFieldMapper::getTypeLabel

public 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_translation

Code

1
2
3
4
public function getTypeLabel() {
  $base_entity_info = $this->entityManager->getDefinition($this->pluginDefinition['base_entity_type']);
  return $this->t('@label fields', array('@label' => $base_entity_info->getLabel()));
}
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.