You are here

public function TMGMTNodeSourcePluginController::getUri in Translation Management Tool 7

Returns the Uri for this job item.

Parameters

TMGMTJobItem $job_item: The job item entity.

Overrides TMGMTDefaultSourcePluginController::getUri

See also

entity_uri()

File

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

Class

TMGMTNodeSourcePluginController
@file Provides the node source plugin controller.

Code

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