Verified Commit 084ca800 authored by quietone's avatar quietone
Browse files

fix: #3619969 Fix StaticMap migrate process plugin doc variable names in examples

By: arousseau
By: rsanjuan
By: dcam
By: ishfaqafridi85
By: benjifisher
(cherry picked from commit 347ae666)
parent 10cc9b3c
Loading
Loading
Loading
Loading
Loading
+6 −6
Changes for core/modules/migrate/src/Plugin/migrate/process/StaticMap.php: 6 added lines, 6 removed lines.
Original line number Diff line number Diff line
@@ -90,7 +90,7 @@
 *
 * A default value can be defined for all values that are not included in the
 * map. See the example below. If the value of the source property 'foo' is
 * 'yet_another' (a value that is not in the map), 'bar' will be returned.
 * 'yet_another' (a value that is not in the map), 'fallback' will be returned.
 * @code
 * process:
 *   bar:
@@ -99,7 +99,7 @@
 *     map:
 *       from: to
 *       this: that
 *     default_value: bar
 *     default_value: fallback
 * @endcode
 *
 * If your source data has boolean values as strings, you need to use single
@@ -115,9 +115,9 @@
 *
 * If your source data contains booleans, the boolean is treated as a numeric 0
 * or 1. If the value of the source property 'foo' is TRUE then the value of the
 * destination property bar will be 'bar'. And if the value of the source
 * destination property bar will be 'quux'. And if the value of the source
 * property 'foo' is FALSE then the value of the destination property bar will
 * be 'bar'.
 * be 'baz'.
 *
 * @code
 * process:
@@ -125,8 +125,8 @@
 *     plugin: static_map
 *     source: foo
 *     map:
 *       0: foo
 *       1: bar
 *       0: baz
 *       1: quux
 * @endcode
 *
 * Note you cannot map NULL to a value. Use the default_value or bypass setting