Issue #2941318 by davewilly, chiranjeeb2410, kiamlaluno: Incorrectly formatted documentation in Get migrate process plugin

8.6.x
Alex Pott 2018-02-07 21:23:52 +00:00
parent a2d12696bf
commit a31892acd2
1 changed files with 11 additions and 13 deletions

View File

@ -33,7 +33,7 @@ use Drupal\migrate\Row;
* bar: foo * bar: foo
* @endcode * @endcode
* *
* get also supports a list of source properties. * Get also supports a list of source properties.
* *
* Example: * Example:
* *
@ -53,7 +53,7 @@ use Drupal\migrate\Row;
* value will be used. This makes it impossible to reach a source property with * value will be used. This makes it impossible to reach a source property with
* an empty string as its name. * an empty string as its name.
* *
* get also supports copying destination values. These are indicated by a * Get also supports copying destination values. These are indicated by a
* starting @ sign. Values using @ must be wrapped in quotes. * starting @ sign. Values using @ must be wrapped in quotes.
* *
* @code * @code
@ -69,15 +69,13 @@ use Drupal\migrate\Row;
* This will simply copy the destination value of foo to the destination * This will simply copy the destination value of foo to the destination
* property bar. foo configuration is included for illustration purposes. * property bar. foo configuration is included for illustration purposes.
* *
* Because of this, if your source or destination property actually starts with * Because of this, if the source or destination property actually starts with a
* a @ you need to double those starting characters up. This means that if a * @, that character must be escaped with @@.
* destination property happens to start with a @ and you want to refer it, * The referenced property becomes, for example, @@@foo.
* you'll need to start with three @ characters -- one to indicate the
* destination and two for escaping the real @.
* *
* @code * @code
* process: * process:
* @foo: * '@foo':
* plugin: machine_name * plugin: machine_name
* source: baz * source: baz
* bar: * bar: