You are here

migrate_plus.migration.migrate_csv.yml in Migrate Source CSV 8.2

tests/modules/migrate_source_csv_test/config/optional/migrate_plus.migration.migrate_csv.yml

File

tests/modules/migrate_source_csv_test/config/optional/migrate_plus.migration.migrate_csv.yml
View source
  1. langcode: en
  2. status: true
  3. dependencies:
  4. enforced:
  5. module:
  6. - migrate_source_csv_test
  7. id: migrate_csv
  8. migration_tags:
  9. - CSV
  10. migration_group: people
  11. label: 'CSV file migration'
  12. source:
  13. plugin: csv
  14. path: /artifacts/people.csv
  15. header_row_count: 1
  16. keys:
  17. - id
  18. column_names:
  19. -
  20. id: Identifier
  21. -
  22. first_name: 'First Name'
  23. -
  24. last_name: 'Last Name'
  25. -
  26. email: 'Email Address'
  27. -
  28. country: Country
  29. -
  30. ip_address: 'IP Address'
  31. -
  32. date_of_birth: 'Date of Birth'
  33. process:
  34. type:
  35. plugin: default_value
  36. default_value: people
  37. title:
  38. plugin: concat
  39. source:
  40. - first_name
  41. - last_name
  42. delimiter: ' '
  43. field_first_name: first_name
  44. field_last_name: last_name
  45. field_email: email
  46. field_country:
  47. plugin: entity_generate
  48. source: country
  49. field_ip_address: ip_address
  50. field_dob:
  51. plugin: format_date
  52. from_format: m/d/Y
  53. to_format: Y-m-d
  54. source: date_of_birth
  55. destination:
  56. plugin: 'entity:node'
  57. migration_dependencies:
  58. required: { }
  59. optional: { }