You are here

public function TMGMTI18nStringSourcePluginController::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 TMGMTDefaultSourcePluginController::getType

File

sources/i18n_string/tmgmt_i18n_string.plugin.inc, line 106
Provides the i18n string source controller.

Class

TMGMTI18nStringSourcePluginController
Translation plugin controller for i18n strings.

Code

public function getType(TMGMTJobItem $job_item) {
  if ($label = $this
    ->getItemTypeLabel($job_item->item_type)) {
    return $label;
  }
  return parent::getType($job_item);
}