You are here

public function TMGMTJobItem::getSourceLabel in Translation Management Tool 7

Retrieves the label of the source object via the source controller.

Return value

The label of the source object.

4 calls to TMGMTJobItem::getSourceLabel()
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::addTranslatedData in entity/tmgmt.entity.job_item.inc
Adds translated data to a job item.
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 214

Class

TMGMTJobItem
Entity class for the tmgmt_job entity.

Code

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