d6_url_alias.yml

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

File

core/modules/path/migrations/d6_url_alias.yml

View source
  1. id: d6_url_alias
  2. label: URL aliases
  3. migration_tags:
  4. - Drupal 6
  5. - Content
  6. source:
  7. plugin: d6_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. - src
  19. alias:
  20. plugin: concat
  21. source:
  22. - constants/slash
  23. - dst
  24. node_translation:
  25. -
  26. plugin: explode
  27. source: src
  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. - d6_node_complete
  39. - d6_node_translation
  40. -
  41. plugin: node_complete_node_translation_lookup
  42. langcode:
  43. -
  44. plugin: null_coalesce
  45. source:
  46. - '@node_translation/1'
  47. - language
  48. -
  49. plugin: default_value
  50. default_value: 'und'
  51. path:
  52. plugin: path_set_translated
  53. source:
  54. - '@_path'
  55. - '@node_translation'
  56. destination:
  57. plugin: entity:path_alias

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