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();
}
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();
}