Skip to content
Snippets Groups Projects
Commit 0f64348e authored by Gabor Hojtsy's avatar Gabor Hojtsy
Browse files

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
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment