public function ContentEntitySource::getItemTypeLabel

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 432

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