You are here

public function ContentEntitySource::getItemTypeLabel in Translation Management Tool 8

Returns the label of a source item type.

Parameters

$type: The identifier of a source item type.

Overrides SourcePluginBase::getItemTypeLabel

File

sources/content/src/Plugin/tmgmt/Source/ContentEntitySource.php, line 430

Class

ContentEntitySource
Content entity source plugin controller.

Namespace

Drupal\tmgmt_content\Plugin\tmgmt\Source

Code

public function getItemTypeLabel($type) {
  return \Drupal::entityTypeManager()
    ->getDefinition($type)
    ->getLabel();
}