Updated all the contrib modules to their latest versions.
[yaffs-website] / web / modules / contrib / migrate_plus / migrate_example_advanced / migrate_example_advanced.install
index fa931770cbfbf5687132c09f15a5db3d4c4b9a7a..2023bdee16be8ba07e0d9e21610eff8261773dea 100644 (file)
@@ -21,7 +21,11 @@ function migrate_example_advanced_install() {
   if ($wine_role_xml_migration) {
     $source = $wine_role_xml_migration->get('source');
     $request = \Drupal::request();
-    $source['urls'] = 'http://' . $request->getHttpHost() . $source['urls'];
+    $urls = [];
+    foreach ($source['urls'] as $url) {
+      $urls[] = 'http://' . $request->getHttpHost() . $url;
+    }
+    $source['urls'] = $urls;
     $wine_role_xml_migration->set('source', $source);
     $wine_role_xml_migration->save();
   }
@@ -30,7 +34,11 @@ function migrate_example_advanced_install() {
   if ($wine_role_json_migration) {
     $source = $wine_role_json_migration->get('source');
     $request = \Drupal::request();
-    $source['urls'] = 'http://' . $request->getHttpHost() . $source['urls'];
+    $urls = [];
+    foreach ($source['urls'] as $url) {
+      $urls[] = 'http://' . $request->getHttpHost() . $url;
+    }
+    $source['urls'] = $urls;
     $wine_role_json_migration->set('source', $source);
     $wine_role_json_migration->save();
   }