You are here

public function TMGMTNodeSourcePluginController::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/node/tmgmt_node.plugin.inc, line 119
Provides the node source plugin controller.

Class

TMGMTNodeSourcePluginController
@file Provides the node source plugin controller.

Code

public function getType(TMGMTJobItem $job_item) {
  if ($node = node_load($job_item->item_id)) {
    return node_type_get_name($node);
  }
  return parent::getType($job_item);
}