public function TMGMTEntitySourcePluginController::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
File
- sources/
entity/ tmgmt_entity.plugin.inc, line 16 - Provides the Entity source controller.
Class
- TMGMTEntitySourcePluginController
- @file Provides the Entity source controller.
Code
public function getUri(TMGMTJobItem $job_item) {
if ($entity = entity_load_single($job_item->item_type, $job_item->item_id)) {
return entity_uri($job_item->item_type, $entity);
}
}