You are here

public function JobItem::getSourceUrl in Translation Management Tool 8

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

Return value

\Drupal\Core\Url The URL object for the source object.

Overrides JobItemInterface::getSourceUrl

4 calls to JobItem::getSourceUrl()
JobItem::accepted in src/Entity/JobItem.php
Sets the state of the job item to 'accepted'.
JobItem::active in src/Entity/JobItem.php
Sets the state of the job item to 'active'.
JobItem::addTranslatedData in src/Entity/JobItem.php
Adds translated data to a job item.
JobItem::needsReview in src/Entity/JobItem.php
Sets the state of the job item to 'needs review'.

File

src/Entity/JobItem.php, line 317

Class

JobItem
Entity class for the tmgmt_job_item entity.

Namespace

Drupal\tmgmt\Entity

Code

public function getSourceUrl() {
  if ($plugin = $this
    ->getSourcePlugin()) {
    return $plugin
      ->getUrl($this);
  }
  return FALSE;
}