public function Message::getJob

Loads the job entity that this job message is attached to.

Return value

\Drupal\tmgmt\JobInterface The job entity that this job message is attached to or FALSE if there was a problem.

Overrides MessageInterface::getJob

File

src/Entity/Message.php, line 105

Class

Message
Entity class for the tmgmt_message entity.

Namespace

Drupal\tmgmt\Entity

Code

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