You are here

public function JobItem::getRemoteMappings in Translation Management Tool 8

Gets remote mappings for current job item.

Return value

array List of TMGMTRemote entities.

Overrides JobItemInterface::getRemoteMappings

File

src/Entity/JobItem.php, line 972

Class

JobItem
Entity class for the tmgmt_job_item entity.

Namespace

Drupal\tmgmt\Entity

Code

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