public function Job::getRemoteMappings

Gets remote mappings for current job.

Return value

array List of TMGMTRemote entities.

Overrides JobInterface::getRemoteMappings

File

src/Entity/Job.php, line 915

Class

Job
Entity class for the tmgmt_job entity.

Namespace

Drupal\tmgmt\Entity

Code

public function getRemoteMappings() {
  $trids = \Drupal::entityQuery('tmgmt_remote')
    ->accessCheck(TRUE)
    ->condition('tjid', $this
    ->id())
    ->execute();
  if (!empty($trids)) {
    return RemoteMapping::loadMultiple($trids);
  }
  return array();
}