You are here

public function ConfigFieldMapper::getTypeLabel in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 50
Contains \Drupal\config_translation\ConfigFieldMapper.

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(),
  ));
}