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