d7_block_translation.yml

Same filename in other branches
  1. 8.9.x core/modules/content_translation/migrations/d7_block_translation.yml
  2. 10 core/modules/config_translation/migrations/d7_block_translation.yml
  3. 11.x core/modules/config_translation/migrations/d7_block_translation.yml
core/modules/config_translation/migrations/d7_block_translation.yml

File

core/modules/config_translation/migrations/d7_block_translation.yml

View source
  1. id: d7_block_translation
  2. label: Block translation
  3. migration_tags:
  4. - Drupal 7
  5. - Configuration
  6. - Multilingual
  7. source:
  8. plugin: d7_block_translation
  9. constants:
  10. dest_label: 'settings/label'
  11. process:
  12. multilingual:
  13. plugin: skip_on_empty
  14. source: i18n_mode
  15. method: row
  16. langcode: language
  17. property: constants/dest_label
  18. translation: translation
  19. id:
  20. -
  21. plugin: migration_lookup
  22. migration: d7_block
  23. source:
  24. - module
  25. - delta
  26. -
  27. plugin: skip_on_empty
  28. method: row
  29. # The plugin process is copied from d7_block.yml
  30. plugin:
  31. -
  32. plugin: static_map
  33. bypass: true
  34. source:
  35. - module
  36. - delta
  37. map:
  38. book:
  39. navigation: book_navigation
  40. comment:
  41. recent: views_block:comments_recent-block_1
  42. forum:
  43. active: forum_active_block
  44. new: forum_new_block
  45. # locale:
  46. # 0: language_block
  47. node:
  48. syndicate: node_syndicate_block
  49. search:
  50. form: search_form_block
  51. statistics:
  52. popular: statistics_popular_block
  53. system:
  54. main: system_main_block
  55. 'powered-by': system_powered_by_block
  56. user:
  57. login: user_login_block
  58. # 1: system_menu_block:tools
  59. new: views_block:who_s_new-block_1
  60. online: views_block:who_s_online-who_s_online_block
  61. -
  62. plugin: block_plugin_id
  63. -
  64. plugin: skip_on_empty
  65. method: row
  66. # The theme process is copied from d7_block.yml
  67. theme:
  68. plugin: block_theme
  69. source:
  70. - theme
  71. - default_theme
  72. - admin_theme
  73. destination:
  74. plugin: entity:block
  75. translations: true
  76. migration_dependencies:
  77. required:
  78. - d7_block
  79. - language

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