public function TMGMTDefaultSourcePluginController::getItemTypeLabel in Translation Management Tool 7
Returns the label of a source item type.
Parameters
$type: The identifier of a source item type.
Overrides TMGMTSourcePluginControllerInterface::getItemTypeLabel
2 calls to TMGMTDefaultSourcePluginController::getItemTypeLabel()
- TMGMTI18nStringSourcePluginController::getType in sources/
i18n_string/ tmgmt_i18n_string.plugin.inc - Returns the type of a job item.
- TMGMTLocaleSourcePluginController::getType in sources/
locale/ tmgmt_locale.plugin.inc - [@inheritdoc}
File
- plugin/
tmgmt.plugin.source.inc, line 42 - Contains the abstract source base plugin class.
Class
- TMGMTDefaultSourcePluginController
- Default controller class for source plugins.
Code
public function getItemTypeLabel($type) {
$types = $this
->getItemTypes();
if (isset($types[$type])) {
return $types[$type];
}
return '';
}