diff --git a/core/lib/Drupal/Core/Field/Plugin/migrate/cckfield/NodeReference.php b/core/lib/Drupal/Core/Field/Plugin/migrate/cckfield/NodeReference.php index 8cb6198..bc24849 100644 --- a/core/lib/Drupal/Core/Field/Plugin/migrate/cckfield/NodeReference.php +++ b/core/lib/Drupal/Core/Field/Plugin/migrate/cckfield/NodeReference.php @@ -81,17 +81,17 @@ public function transformFieldInstanceSettings(Row $row) { } /** - * Look up migrated role IDs from the d6_node_type migration. + * Look up migrated node types from the d6_node_type migration. * * @param $source_node_types - * The source role IDs. + * The source node types. * * @return array - * The migrated role IDs. + * The migrated node types. */ protected function migrateNodeTypes($source_node_types) { // Configure the migration process plugin to look up migrated IDs from - // the d6_user_role migration. + // the d6_node_type migration. $migration_plugin_configuration = [ 'migration' => $this->nodeTypeMigration, ]; @@ -102,11 +102,11 @@ protected function migrateNodeTypes($source_node_types) { $migrationPlugin = $this->migratePluginManager ->createInstance('migration', $migration_plugin_configuration, $migration); - $roles = []; + $node_types = []; foreach ($source_node_types as $role) { - $roles[] = $migrationPlugin->transform($role, $executable, $row, NULL); + $node_types[] = $migrationPlugin->transform($role, $executable, $row, NULL); } - return array_combine($roles, $roles); + return array_combine($node_types, $node_types); } }