diff -u b/core/modules/migrate/src/Plugin/migrate/destination/EntityContentBase.php b/core/modules/migrate/src/Plugin/migrate/destination/EntityContentBase.php --- b/core/modules/migrate/src/Plugin/migrate/destination/EntityContentBase.php +++ b/core/modules/migrate/src/Plugin/migrate/destination/EntityContentBase.php @@ -181,26 +181,6 @@ throw new MigrateException('Stubbing failed, unable to generate value for field ' . $field_name); break; } - else { - // @todo UriItem does not generate a valid uri. - // @see https://www.drupal.org/node/2605150 - if ($field_type == 'uri') { - foreach ($values as $key => $value) { - if (!strpos($value, '://')) { - $suffix_length = Unicode::strlen($value) - 7; - $values[$key] = 'http://' . Unicode::substr($value, 0, $suffix_length); - } - } - } - // @todo LinkItem does not generate a valid internal link. - // @see https://www.drupal.org/node/2605254 - elseif ($field_type == 'link') { - if ($field_definition->getItemDefinition()->getSetting('link_type') & LinkItemInterface::LINK_INTERNAL) { - $random = new Random(); - $values['uri'] = 'base:' . $random->name(mt_rand(1, 64)); - } - } - } } $row->setDestinationProperty($field_name, $values);