public function LocalTask::getJob in Translation Management Tool 8
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\EntityCode
public function getJob() {
return Job::load($this
->get('tjid')->target_id);
}