public function ConfigSource::getItemTypeLabel

Returns the label of a source item type.

Parameters

$type: The identifier of a source item type.

Overrides SourcePluginBase::getItemTypeLabel

File

sources/tmgmt_config/src/Plugin/tmgmt/Source/ConfigSource.php, line 325

Class

ConfigSource
Content entity source plugin controller.

Namespace

Drupal\tmgmt_config\Plugin\tmgmt\Source

Code

public function getItemTypeLabel($type) {
  $item_types = $this
    ->getItemTypes();
  return $item_types[$type];
}