Verified Commit 10cc9b3c authored by quietone's avatar quietone
Browse files

task: #3560542 Improve documentation for migrate-plugin concat

By: jan kellermann
By: dcam
By: quietone
By: drupal.ninja03
By: nicxvan
(cherry picked from commit f9f36243)
parent f1c551b3
Loading
Loading
Loading
Loading
Loading
+1 −1
Changes for core/modules/migrate/src/Plugin/migrate/process/Concat.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -48,7 +48,7 @@
 * This will set new_text_field to the concatenation of the 'foo' source value,
 * the delimiter and the 'bar' source value. For example, using the values above
 * and "/" as the delimiter, if the 'foo' property is "Rosa" and the 'bar'
 * property is "Rosa", new_text_field will be "Rosa/Parks".
 * property is "Parks", new_text_field will be "Rosa/Parks".
 *
 * @see \Drupal\migrate\Plugin\MigrateProcessInterface
 */
+10 −4
Changes for core/modules/migrate/src/Plugin/migrate/process/Get.php: 10 added lines, 4 removed lines.
Original line number Diff line number Diff line
@@ -16,6 +16,16 @@
 * The get plugin returns the value of the property given by the "source"
 * configuration key.
 *
 * If the source configuration contains an empty value, the current value in the
 * process pipeline will be used. This applies when source is a list of source
 * properties and one of the list items is empty, such as null, an empty string,
 * or an empty array.
 *
 * The string '0' is not treated as empty.
 *
 * This makes it impossible to reference a source property with an empty string
 * as its name.
 *
 * Examples:
 *
 * @code
@@ -50,10 +60,6 @@
 * This copies the array of source values [foo1, foo2] to the destination
 * property "bar".
 *
 * If the list of source properties contains an empty element then the current
 * value will be used. This makes it impossible to reach a source property with
 * an empty string as its name.
 *
 * Get also supports copying destination values. These are indicated by a
 * starting @ sign. Values using @ must be wrapped in quotes.
 *