1 id: node_translation_menu_links
2 label: Node Translations Menu links
12 entity_prefix: 'entity:'
17 description: description
20 plugin: migration_lookup
21 # The menu migration is in the system module.
34 # In this process pipeline, given a menu link path that might be for a
35 # translated node which has been merged with the default language node, we are
36 # trying to determine the new node ID, that is the ID of the default language
40 # If the path is of the form "node/<ID>" and is not routed, we will get
41 # back an URI of the form "base:node/<ID>".
47 # Isolate the node ID.
49 delimiter: 'base:node/'
51 # Extract the node ID.
57 # Skip row if node ID is empty.
61 # With the old node ID in hand, lookup in the d6_node_translation or
62 # d7_node_translation mapping tables to find the new node ID.
63 plugin: migration_lookup
69 # Skip row if the new node ID is empty.
73 # Extract the node ID. The migration lookup will return an array with two
74 # items, the new node ID and the translation langcode. We need the node ID
75 # which is at index 0.
79 # This will be used in the "link/uri" and "route" processes below.
83 - 'constants/node_prefix'
88 - 'constants/entity_prefix'
96 route_name: '@route/route_name'
97 route_parameters: '@route/route_parameters'
99 options: '@route/options'
105 plugin: menu_link_parent
112 plugin: entity:menu_link_content
113 default_bundle: menu_link_content
115 migration_dependencies:
118 - d6_node_translation
120 - d7_node_translation