7a6bb2c68c3403cf49c24170431326eaf5bb4a58
[yaffs-website] / web / core / modules / menu_link_content / migrations / d6_menu_links.yml
1 id: d6_menu_links
2 label: Menu links
3 audit: true
4 migration_tags:
5   - Drupal 6
6   - Content
7 source:
8   plugin: menu_link
9 process:
10   id: mlid
11   title: link_title
12   description: description
13   menu_name:
14     -
15       plugin: migration_lookup
16       # The menu migration is in the system module.
17       migration: d6_menu
18       source: menu_name
19     -
20       plugin: skip_on_empty
21       method: row
22     -
23       plugin: static_map
24       map:
25         management: admin
26       bypass: true
27   'link/uri':
28     plugin: link_uri
29     source:
30       - link_path
31   'link/options': options
32   route:
33     plugin: route
34     source:
35       - link_path
36       - options
37   route_name: '@route/route_name'
38   route_parameters: '@route/route_parameters'
39   url: '@route/url'
40   options: '@route/options'
41   external: external
42   weight: weight
43   expanded: expanded
44   enabled: enabled
45   parent:
46     plugin: menu_link_parent
47     source:
48       - plid
49       - '@menu_name'
50       - parent_link_path
51   changed: updated
52 destination:
53   plugin: entity:menu_link_content
54   default_bundle: menu_link_content
55   no_stub: true
56 migration_dependencies:
57   required:
58     - d6_menu