You are here

d7_custom_block_translation.yml in Drupal 9

core/modules/content_translation/migrations/d7_custom_block_translation.yml

File

core/modules/content_translation/migrations/d7_custom_block_translation.yml
View source
  1. id: d7_custom_block_translation
  2. label: Custom block translations
  3. migration_tags:
  4. - Drupal 7
  5. - Content
  6. - Multilingual
  7. source:
  8. plugin: d7_block_custom_translation
  9. process:
  10. id:
  11. plugin: migration_lookup
  12. migration: d7_custom_block
  13. source:
  14. - bid
  15. langcode: language
  16. info:
  17. -
  18. plugin: callback
  19. source:
  20. - title_translated
  21. - title
  22. callable: array_filter
  23. -
  24. plugin: callback
  25. callable: current
  26. 'body/value':
  27. -
  28. plugin: callback
  29. source:
  30. - body_translated
  31. - body
  32. callable: array_filter
  33. -
  34. plugin: callback
  35. callable: current
  36. 'body/format':
  37. plugin: migration_lookup
  38. migration: d7_filter_format
  39. source: format
  40. destination:
  41. plugin: entity:block_content
  42. no_stub: true
  43. translations: true
  44. destination_module: content_translation
  45. migration_dependencies:
  46. required:
  47. - d7_filter_format
  48. - block_content_body_field
  49. - d7_custom_block
  50. - language