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

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
2016-10-29 08:53:22
Comments
Leave a Comment

Please login to continue.