You are here

public function TMGMTNodeSourcePluginController::getLabel in Translation Management Tool 7

Return a title for this job item.

Parameters

TMGMTJobItem $job_item: The job item entity.

Overrides TMGMTDefaultSourcePluginController::getLabel

File

sources/node/tmgmt_node.plugin.inc, line 99
Provides the node source plugin controller.

Class

TMGMTNodeSourcePluginController
@file Provides the node source plugin controller.

Code

public function getLabel(TMGMTJobItem $job_item) {
  if ($node = node_load($job_item->item_id)) {
    return entity_label('node', $node);
  }
  return parent::getLabel($job_item);
}