README.txt 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. The migrate_plus module extends the core migration system with API enhancements
  2. and additional functionality, as well as providing practical examples.
  3. Extensions to base API
  4. ======================
  5. * A Migration configuration entity is provided, enabling persistance of dynamic
  6. migration configuration.
  7. * A MigrationGroup configuration entity is provided, which enables migrations to
  8. be organized in groups, and to maintain shared configuration in one place.
  9. * A MigrateEvents::PREPARE_ROW event is provided to dispatch hook_prepare_row()
  10. invocations as events.
  11. * A SourcePluginExtension class is provided, enabling one to define fields and
  12. IDs for a source plugin via configuration rather than requiring PHP code.
  13. Plugin types
  14. ============
  15. migrate_plus provides the following plugin types, for use with the url source
  16. plugin.
  17. * A data_parser type, for parsing different formats on behalf of the url source
  18. plugin.
  19. * A data_fetcher type, for fetching data to feed into a data_parser plugin.
  20. * An authentication type, for adding authentication headers with the http
  21. data_fetcher plugin.
  22. Plugins
  23. =======
  24. Process
  25. -------
  26. * The entity_lookup process plugin allows you to populate references to entities
  27. which already exist in Drupal, whether they were migrated or not.
  28. * The entity_generate process plugin extends entity_lookup to also create the
  29. desired entity when it doesn't already exist.
  30. * The file_blob process plugin supports creating file entities from blob data.
  31. * The merge process plugin allows the merging of multiple arrays into a single
  32. field.
  33. * The skip_on_value process plugin allows you to skip a row, or a given field,
  34. for specific source values.
  35. Source
  36. ------
  37. * A url source plugin is provided, implementing a common structure for
  38. file-based data providers.
  39. Data parsers
  40. ------------
  41. * The xml parser plugin uses PHP's XMLReader interface to incrementally parse
  42. XML files. This should be used for XML sources which are potentially very
  43. large.
  44. * The simple_xml parser plugin uses PHP's SimpleXML interface to fully parse
  45. XML files. This should be used for XML sources where you need to be able to
  46. use complex xpaths for your item selectors, or have to access elements outside
  47. of the current item element via xpaths.
  48. * The json parser plugin supports JSON sources.
  49. * The soap parser plugin supports SOAP sources.
  50. Data fetchers
  51. -------------
  52. * The file fetcher plugin works for most URLs regardless of protocol, as well as
  53. local filesystems.
  54. * The http fetcher plugin provides the ability to add headers to an HTTP
  55. request (particularly through authentication plugins).
  56. Authentication
  57. --------------
  58. * The basic authentication plugin provides HTTP Basic authentication.
  59. * The digest authentication plugin provides HTTP Digest authentication.
  60. * The oauth2 authentication plugin provides OAuth2 authentication over HTTP.
  61. Examples
  62. ========
  63. * The migrate_example submodule provides a fully functional and runnable
  64. example migration scenario demonstrating the basic concepts and most common
  65. techniques for SQL-based migrations.
  66. * The migrate_example_advanced submodule provides examples of migration from
  67. different kinds of sources, as well as less common techniques.