X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fmigrate%2Fsrc%2FPlugin%2Fmigrate%2Fsource%2FEmptySource.php;fp=web%2Fcore%2Fmodules%2Fmigrate%2Fsrc%2FPlugin%2Fmigrate%2Fsource%2FEmptySource.php;h=5f44035e254525bc29b61bc92a6fb24f3ef88965;hp=2391b0a2514b902daabec46ed3798412b65be2cb;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hpb=aea91e65e895364e460983b890e295aa5d5540a5 diff --git a/web/core/modules/migrate/src/Plugin/migrate/source/EmptySource.php b/web/core/modules/migrate/src/Plugin/migrate/source/EmptySource.php index 2391b0a25..5f44035e2 100644 --- a/web/core/modules/migrate/src/Plugin/migrate/source/EmptySource.php +++ b/web/core/modules/migrate/src/Plugin/migrate/source/EmptySource.php @@ -3,9 +3,20 @@ namespace Drupal\migrate\Plugin\migrate\source; /** - * Source returning an empty row. + * Source returning a row based on the constants provided. * - * This is generally useful when needing to create a field using a migration.. + * Example: + * + * @code + * source: + * plugin: empty + * constants: + * entity_type: user + * field_name: image + * @endcode + * + * This will return a single row containing 'entity_type' and 'field_name' + * elements, with values of 'user' and 'image', respectively. * * @MigrateSource( * id = "empty"