You are here

public function TMGMTJobItem::getSourceUri in Translation Management Tool 7

Retrieves the path to the source object via the source controller.

Return value

The path to the source object.

3 calls to TMGMTJobItem::getSourceUri()
TMGMTJobItem::accepted in entity/tmgmt.entity.job_item.inc
Sets the state of the job item to 'accepted'.
TMGMTJobItem::active in entity/tmgmt.entity.job_item.inc
Sets the state of the job item to 'active'.
TMGMTJobItem::needsReview in entity/tmgmt.entity.job_item.inc
Sets the state of the job item to 'needs review'.

File

entity/tmgmt.entity.job_item.inc, line 227

Class

TMGMTJobItem
Entity class for the tmgmt_job entity.

Code

public function getSourceUri() {
  if ($controller = $this
    ->getSourceController()) {
    return $controller
      ->getUri($this);
  }
  return FALSE;
}