Commit 0f64348e authored by Gábor Hojtsy's avatar Gábor Hojtsy

Issue #2862673 by masipila, Pavan B S, Jo Fitzgerald, phenaproxima: Add...

Issue #2862673 by masipila, Pavan B S, Jo Fitzgerald, phenaproxima: Add documentation to EmptySource source plugin
parent 2a9dc18b
......@@ -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"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment