Skip to content
Snippets Groups Projects
Unverified Commit bf5aa399 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3171510 by quietone: Add documentation for default_bundle to destination\Entity

parent f2845ab6
No related branches found
No related tags found
No related merge requests found
......@@ -14,6 +14,10 @@
/**
* Provides a generic destination to import entities.
*
* Available configuration keys:
* - default_bundle: (optional) The bundle to use for this row if 'bundle' is
* not defined on the row.
*
* Examples:
*
* @code
......@@ -44,8 +48,11 @@
* revision_timestamp: timestamp
* destination:
* plugin: entity:node
* default_bundle: custom
* @endcode
*
* This will save the processed, migrated row as a node of type 'custom'.
*
* @MigrateDestination(
* id = "entity",
* deriver = "Drupal\migrate\Plugin\Derivative\MigrateEntity"
......
......@@ -84,6 +84,7 @@
* validate: true
* @endcode
*
* @see \Drupal\migrate\Plugin\migrate\destination\Entity
* @see \Drupal\migrate\Plugin\migrate\destination\EntityRevision
*/
class EntityContentBase extends Entity implements HighestIdInterface, MigrateValidatableEntityInterface {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment