diff --git a/src/Drupal/Driver/Fields/Drupal7/NodereferenceHandler.php b/src/Drupal/Driver/Fields/Drupal7/NodereferenceHandler.php new file mode 100644 index 00000000..1d0fd323 --- /dev/null +++ b/src/Drupal/Driver/Fields/Drupal7/NodereferenceHandler.php @@ -0,0 +1,29 @@ +fields('t', array($entity_info['entity keys']['id'])) + ->condition('t.' . $entity_info['entity keys']['label'], $value) + ->execute()->fetchField(); + if ($nid) { + $return[$this->language][] = array('nid' => $nid); + } + } + + return $return; + } +}