Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / migrate_drupal / src / Plugin / migrate / field / UserReference.php
index 4f1a6036eed2c210ffb159981ffa9bb4698fb05e..4a60f450de5b02c801cd087daa59fff9de7b8eaf 100644 (file)
@@ -11,6 +11,8 @@ use Drupal\migrate\Plugin\MigrationInterface;
  *   type_map = {
  *     "userreference" = "entity_reference",
  *   },
+ *   source_module = "userreference",
+ *   destination_module = "core",
  * )
  */
 class UserReference extends FieldPluginBase {
@@ -18,16 +20,9 @@ class UserReference extends FieldPluginBase {
   /**
    * {@inheritdoc}
    */
-  public function getFieldFormatterMap() {
-    return [];
-  }
-
-  /**
-   * {@inheritdoc}
-   */
-  public function processFieldValues(MigrationInterface $migration, $field_name, $data) {
+  public function defineValueProcessPipeline(MigrationInterface $migration, $field_name, $data) {
     $process = [
-      'plugin' => 'iterator',
+      'plugin' => 'sub_process',
       'source' => $field_name,
       'process' => [
         'target_id' => [