public function TMGMTDefaultSourcePluginController::getType in Translation Management Tool 7
Returns the type of a job item.
Parameters
TMGMTJobItem $job_item: The job item.
Return value
string A type that describes the job item.
Overrides TMGMTSourcePluginControllerInterface::getType
3 calls to TMGMTDefaultSourcePluginController::getType()
- TMGMTEntitySourcePluginController::getType in sources/
entity/ tmgmt_entity.plugin.inc - Returns the type of a job item.
- TMGMTI18nStringSourcePluginController::getType in sources/
i18n_string/ tmgmt_i18n_string.plugin.inc - Returns the type of a job item.
- TMGMTNodeSourcePluginController::getType in sources/
node/ tmgmt_node.plugin.inc - Returns the type of a job item.
4 methods override TMGMTDefaultSourcePluginController::getType()
- TMGMTEntitySourcePluginController::getType in sources/
entity/ tmgmt_entity.plugin.inc - Returns the type of a job item.
- 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}
- TMGMTNodeSourcePluginController::getType in sources/
node/ tmgmt_node.plugin.inc - Returns the type of a job item.
File
- plugin/
tmgmt.plugin.source.inc, line 53 - Contains the abstract source base plugin class.
Class
- TMGMTDefaultSourcePluginController
- Default controller class for source plugins.
Code
public function getType(TMGMTJobItem $job_item) {
return ucfirst($job_item->item_type);
}