d7_block_translation.yml

Same filename and directory in other branches
  1. 8.9.x core/modules/content_translation/migrations/d7_block_translation.yml
  2. 11.x core/modules/config_translation/migrations/d7_block_translation.yml
  3. 10 core/modules/config_translation/migrations/d7_block_translation.yml
  4. 9 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. search:
  48. form: search_form_block
  49. statistics:
  50. popular: statistics_popular_block
  51. system:
  52. main: system_main_block
  53. 'powered-by': system_powered_by_block
  54. user:
  55. login: user_login_block
  56. # 1: system_menu_block:tools
  57. new: views_block:who_s_new-block_1
  58. online: views_block:who_s_online-who_s_online_block
  59. -
  60. plugin: block_plugin_id
  61. -
  62. plugin: skip_on_empty
  63. method: row
  64. # The theme process is copied from d7_block.yml
  65. theme:
  66. plugin: block_theme
  67. source:
  68. - theme
  69. - default_theme
  70. - admin_theme
  71. destination:
  72. plugin: entity:block
  73. translations: true
  74. migration_dependencies:
  75. required:
  76. - d7_block
  77. - language

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