Verified Commit 64f7abe8 authored by Jess's avatar Jess
Browse files

Issue #3389323 by benjifisher, smustgrave, xjm: Incomplete examples in API...

Issue #3389323 by benjifisher, smustgrave, xjm: Incomplete examples in API docs for the download process plugin

(cherry picked from commit f71ac74e)
parent 86138bdb
Loading
Loading
Loading
Loading
Loading
+15 −9
Original line number Diff line number Diff line
@@ -31,6 +31,7 @@
 *
 * @code
 * process:
 *   path_to_file:
 *     plugin: download
 *     source:
 *       - source_url
@@ -41,16 +42,21 @@
 *
 * @code
 * process:
 *   uri:
 *     plugin: download
 *     source:
 *       - source_url
 *       - destination_uri
 *     file_exists: rename
 *   # other fields ...
 * destination:
 *   plugin: entity:file
 * @endcode
 *
 * This will download source_url to destination_uri and ensure that the
 * destination URI is unique. If a file with the same name exists at the
 * destination, a numbered suffix like '_0' will be appended to make it unique.
 * The destination URI is saved in a file entity.
 *
 * @MigrateProcessPlugin(
 *   id = "download"