d7_url_alias.yml

Same filename in other branches
  1. 9 core/modules/path/migrations/d7_url_alias.yml
  2. 8.9.x core/modules/path/migrations/d7_url_alias.yml
  3. 10 core/modules/path/migrations/d7_url_alias.yml
core/modules/path/migrations/d7_url_alias.yml

File

core/modules/path/migrations/d7_url_alias.yml

View source
  1. id: d7_url_alias
  2. label: URL aliases
  3. migration_tags:
  4. - Drupal 7
  5. - Content
  6. source:
  7. plugin: d7_url_alias
  8. constants:
  9. slash: '/'
  10. process:
  11. # If you are using this file to build a custom migration consider removing
  12. # the id field to allow incremental migrations.
  13. id: pid
  14. _path:
  15. plugin: concat
  16. source:
  17. - constants/slash
  18. - source
  19. alias:
  20. plugin: concat
  21. source:
  22. - constants/slash
  23. - alias
  24. node_translation:
  25. -
  26. plugin: explode
  27. source: source
  28. delimiter: /
  29. -
  30. # If the source path has no slashes return a dummy default value.
  31. plugin: extract
  32. default: 'INVALID_NID'
  33. index:
  34. - 1
  35. -
  36. plugin: migration_lookup
  37. migration:
  38. - d7_node_complete
  39. - d7_node_translation
  40. -
  41. plugin: node_complete_node_translation_lookup
  42. langcode:
  43. plugin: null_coalesce
  44. source:
  45. - '@node_translation/1'
  46. - language
  47. path:
  48. plugin: path_set_translated
  49. source:
  50. - '@_path'
  51. - '@node_translation'
  52. destination:
  53. plugin: entity:path_alias

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.