diff --git a/core/modules/file/src/Plugin/migrate/process/d6/FileSource.php b/core/modules/file/src/Plugin/migrate/process/d6/FileSource.php index e23ed0d..56bb07f 100644 --- a/core/modules/file/src/Plugin/migrate/process/d6/FileSource.php +++ b/core/modules/file/src/Plugin/migrate/process/d6/FileSource.php @@ -20,13 +20,11 @@ class FileSource extends ProcessPluginBase { */ public function transform($value, MigrateExecutableInterface $migrate_executable, Row $row, $destination_property) { list($source_base_path, $filepath) = $value; - if (($source_base_path == '') || ($source_base_path[0] = '/')) { - $source = $filepath; + // If filepath is absolute, it overrides. + if (!empty($filepath) && $filepath[0] === '/') { + return $filepath; } - else { - $source = $source_base_path . '/' . $filepath; - } - return $source; + return $source = $source_base_path . '/' . $filepath; } }