X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fmigrate%2Fsrc%2FPlugin%2Fmigrate%2Fprocess%2FFileCopy.php;h=f598b81198432bd6118ad5e7e643e37aa07732dc;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hp=f24131244f9735aa7984b9d98c417c33a2519faa;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;p=yaffs-website diff --git a/web/core/modules/migrate/src/Plugin/migrate/process/FileCopy.php b/web/core/modules/migrate/src/Plugin/migrate/process/FileCopy.php index f24131244..f598b8119 100644 --- a/web/core/modules/migrate/src/Plugin/migrate/process/FileCopy.php +++ b/web/core/modules/migrate/src/Plugin/migrate/process/FileCopy.php @@ -19,11 +19,9 @@ use Symfony\Component\DependencyInjection\ContainerInterface; * The file can be moved, reused, or set to be automatically renamed if a * duplicate exists. * - * The source value is an array of two values: - * - source: The source path or URI, e.g. '/path/to/foo.txt' or - * 'public://bar.txt'. - * - destination: The destination path or URI, e.g. '/path/to/bar.txt' or - * 'public://foo.txt'. + * The source value is an indexed array of two values: + * - The source path or URI, e.g. '/path/to/foo.txt' or 'public://bar.txt'. + * - The destination URI, e.g. 'public://foo.txt'. * * Available configuration keys: * - move: (optional) Boolean, if TRUE, move the file, otherwise copy the file. @@ -39,8 +37,9 @@ use Symfony\Component\DependencyInjection\ContainerInterface; * process: * path_to_file: * plugin: file_copy - * source: /path/to/file.png - * destination: /new/path/to/file.png + * source: + * - /path/to/file.png + * - public://new/path/to/file.png * @endcode * * @see \Drupal\migrate\Plugin\MigrateProcessInterface