public function LocalTask::getJob

Return the corresponding translation job.

Return value

\Drupal\tmgmt\JobInterface The job.

Overrides LocalTaskInterface::getJob

File

translators/tmgmt_local/src/Entity/LocalTask.php, line 185

Class

LocalTask
Entity class for the local task entity.

Namespace

Drupal\tmgmt_local\Entity

Code

public function getJob() {
  return Job::load($this
    ->get('tjid')->target_id);
}