Unverified Commit 2225b0af authored by larowlan's avatar larowlan

Issue #2862659 by Jo Fitzgerald, Yogesh Pawar, phenaproxima: Add documentation...

Issue #2862659 by Jo Fitzgerald, Yogesh Pawar, phenaproxima: Add documentation to Entity destination plugin
parent 12a28a5e
...@@ -11,7 +11,48 @@ ...@@ -11,7 +11,48 @@
use Symfony\Component\DependencyInjection\ContainerInterface; use Symfony\Component\DependencyInjection\ContainerInterface;
/** /**
* Provides entity destination plugin. * Provides a generic destination to import entities.
*
* Available configuration keys:
* - translations: (optional) Boolean, if TRUE, the destination will be
* associated with the langcode provided by the source plugin. Defaults to
* FALSE.
*
* Examples:
*
* @code
* source:
* plugin: d7_node
* process:
* nid: tnid
* vid: vid
* langcode: language
* title: title
* ...
* revision_timestamp: timestamp
* destination:
* plugin: entity:node
* @endcode
*
* This will save the processed, migrated row as a node.
*
* @code
* source:
* plugin: d7_node
* process:
* nid: tnid
* vid: vid
* langcode: language
* title: title
* ...
* revision_timestamp: timestamp
* destination:
* plugin: entity:node
* translations: true
* @endcode
*
* This will save the processed, migrated row as a node with the relevant
* langcode because the translations configuration is set to "true".
* *
* @MigrateDestination( * @MigrateDestination(
* id = "entity", * id = "entity",
......
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