Issue #2897533 by claudiu.cristea: Documentation and example for FileCopy is wrong
parent
0ab00b4acd
commit
3b04db8ada
|
@ -19,11 +19,9 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
|
||||||
* The file can be moved, reused, or set to be automatically renamed if a
|
* The file can be moved, reused, or set to be automatically renamed if a
|
||||||
* duplicate exists.
|
* duplicate exists.
|
||||||
*
|
*
|
||||||
* The source value is an array of two values:
|
* The source value is an indexed array of two values:
|
||||||
* - source: The source path or URI, e.g. '/path/to/foo.txt' or
|
* - The source path or URI, e.g. '/path/to/foo.txt' or 'public://bar.txt'.
|
||||||
* 'public://bar.txt'.
|
* - The destination URI, e.g. 'public://foo.txt'.
|
||||||
* - destination: The destination path or URI, e.g. '/path/to/bar.txt' or
|
|
||||||
* 'public://foo.txt'.
|
|
||||||
*
|
*
|
||||||
* Available configuration keys:
|
* Available configuration keys:
|
||||||
* - move: (optional) Boolean, if TRUE, move the file, otherwise copy the file.
|
* - move: (optional) Boolean, if TRUE, move the file, otherwise copy the file.
|
||||||
|
@ -39,8 +37,9 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
|
||||||
* process:
|
* process:
|
||||||
* path_to_file:
|
* path_to_file:
|
||||||
* plugin: file_copy
|
* plugin: file_copy
|
||||||
* source: /path/to/file.png
|
* source:
|
||||||
* destination: /new/path/to/file.png
|
* - /path/to/file.png
|
||||||
|
* - public://new/path/to/file.png
|
||||||
* @endcode
|
* @endcode
|
||||||
*
|
*
|
||||||
* @see \Drupal\migrate\Plugin\MigrateProcessInterface
|
* @see \Drupal\migrate\Plugin\MigrateProcessInterface
|
||||||
|
|
Loading…
Reference in New Issue