id: gcweb_menu_link
label: Embedded data feed of menu link content
migration_group: gcweb
migration_tags:
  - Menu
dependencies:
  enforced:
    module:
      - wxt_ext_migration
source:
  plugin: embedded_data
  # Enforce default language to english
  default_lang: true
  data_rows:
    # Brand.
    - mlid: 'ml_brand_1'
      link_title: 'Social media'
      description: 'Social media section.'
      menu_name: 'brand'
      link_path: 'https://www.canada.ca/en/social.html'
      options: []
      external: 1
      weight: 0
      parent: 0
    - mlid: 'ml_brand_2'
      link_title: 'Mobile applications'
      description: 'Mobile applications section.'
      menu_name: 'brand'
      link_path: 'https://www.canada.ca/en/mobile.html'
      options: []
      external: 1
      weight: 1
      parent: 0
    - mlid: 'ml_brand_3'
      link_title: 'About Canada.ca'
      description: 'About Canada.ca section.'
      menu_name: 'brand'
      link_path: 'https://www.canada.ca/en/government/about.html'
      options: []
      external: 1
      weight: 2
      parent: 0
    - mlid: 'ml_brand_4'
      link_title: 'Terms and conditions'
      description: 'Terms and conditions section.'
      menu_name: 'brand'
      link_path: 'https://www.canada.ca/en/transparency/terms.html'
      options: []
      external: 1
      weight: 3
      parent: 0
    - mlid: 'ml_brand_5'
      link_title: 'Privacy'
      description: 'Privacy section.'
      menu_name: 'brand'
      link_path: 'https://www.canada.ca/en/transparency/privacy.html'
      options: []
      external: 1
      weight: 4
      parent: 0
    # Sidebar.
    - mlid: 'ml_sidebar_1'
      link_title: 'Drupal'
      description: 'Drupal.org'
      menu_name: 'sidebar'
      link_path: 'http://drupal.org'
      options: []
      external: 1
      weight: 0
      parent: 0
    - mlid: 'ml_sidebar_1_sub_1'
      link_title: 'Drupal 9'
      description: 'Drupal 9 introduction'
      menu_name: 'sidebar'
      link_path: 'internal:/node/2'
      options: []
      external: 0
      weight: 0
      parent: 'ml_sidebar_1'
    - mlid: 'ml_sidebar_1_sub_1_sub_1'
      link_title: 'Why Drupal 9'
      description: 'Meet the world''s leading digital experience platform.'
      menu_name: 'sidebar'
      link_path: 'https://www.drupal.org/about/9'
      options: []
      external: 0
      weight: 0
      parent: 'ml_sidebar_1_sub_1'
    - mlid: 'ml_sidebar_1_sub_1_sub_2'
      link_title: 'Multilingual Improvements'
      description: 'Drupal 9 multilingual improvements.'
      menu_name: 'sidebar'
      link_path: 'https://www.drupal.org/features/multilingual'
      options: []
      external: 0
      weight: 0
      parent: 'ml_sidebar_1_sub_1'
    - mlid: 'ml_sidebar_1_sub_2'
      link_title: 'Drupal WxT for Drupal 9'
      description: 'Drupal WxT introduction'
      menu_name: 'sidebar'
      link_path: 'internal:/node/1'
      options: []
      external: 0
      weight: 0
      parent: 'ml_sidebar_1'
    - mlid: 'ml_sidebar_1_sub_2_sub_1'
      link_title: 'Drupal WxT (GitHub)'
      description: 'Drupal WxT on GitHub'
      menu_name: 'sidebar'
      link_path: 'http://github.com/drupalwxt/wxt'
      options: []
      external: 0
      weight: 0
      parent: 'ml_sidebar_1_sub_2'
    - mlid: 'ml_sidebar_1_sub_2_sub_2'
      link_title: 'Drupal WxT (Drupal.org)'
      description: 'Drupal WxT on Drupal.org.'
      menu_name: 'sidebar'
      link_path: 'http://drupal.org/project/wxt'
      options: []
      external: 0
      weight: 0
      parent: 'ml_sidebar_1_sub_2'
    # Main.
    - mlid: 'main_jobs_workplace'
      link_title: 'Jobs and the workplace'
      description: ''
      menu_name: 'main'
      link_path: 'https://www.canada.ca/en/services/jobs.html'
      options: []
      external: 1
      weight: 2
      parent: 0
    - mlid: 'main_immigration'
      link_title: 'Immigration and citizenship'
      description: ''
      menu_name: 'main'
      link_path: 'https://www.canada.ca/en/services/immigration-citizenship.html'
      options: []
      external: 1
      weight: 3
      parent: 0
    - mlid: 'main_travel'
      link_title: 'Travel and tourism'
      description: ''
      menu_name: 'main'
      link_path: 'https://travel.gc.ca/'
      options: []
      external: 1
      weight: 4
      parent: 0
    - mlid: 'main_business'
      link_title: 'Business and industry'
      description: ''
      menu_name: 'main'
      link_path: 'https://www.canada.ca/en/services/business.html'
      options: []
      external: 1
      weight: 5
      parent: 0
    - mlid: 'main_benefits'
      link_title: 'Benefits'
      description: ''
      menu_name: 'main'
      link_path: 'https://www.canada.ca/en/services/benefits.html'
      options: []
      external: 1
      weight: 6
      parent: 0
    - mlid: 'main_health'
      link_title: 'Health'
      description: ''
      menu_name: 'main'
      link_path: 'https://www.canada.ca/en/services/health.html'
      options: []
      external: 1
      weight: 7
      parent: 0
    - mlid: 'main_taxes'
      link_title: 'Taxes'
      description: ''
      menu_name: 'main'
      link_path: 'https://www.canada.ca/en/services/taxes.html'
      options: []
      external: 1
      weight: 8
      parent: 0
    - mlid: 'main_environmental'
      link_title: 'Environment and natural resources'
      description: ''
      menu_name: 'main'
      link_path: 'https://www.canada.ca/en/services/environment.html'
      options: []
      external: 1
      weight: 9
      parent: 0
    - mlid: 'main_national_security'
      link_title: 'National security and defence'
      description: ''
      menu_name: 'main'
      link_path: 'https://www.canada.ca/en/services/defence.html'
      options: []
      external: 1
      weight: 10
      parent: 0
    - mlid: 'main_culture'
      link_title: 'Culture, history and sport'
      description: ''
      menu_name: 'main'
      link_path: 'https://www.canada.ca/en/services/culture.html'
      options: []
      external: 1
      weight: 11
      parent: 0
    - mlid: 'main_policing'
      link_title: 'Policing, justice and emergencies'
      description: ''
      menu_name: 'main'
      link_path: 'https://www.canada.ca/en/services/policing.html'
      options: []
      external: 1
      weight: 12
      parent: 0
    - mlid: 'main_transport'
      link_title: 'Transport and infrastructure'
      description: ''
      menu_name: 'main'
      link_path: 'https://www.canada.ca/en/services/transport.html'
      options: []
      external: 1
      weight: 13
      parent: 0
    - mlid: 'main_canada'
      link_title: 'Canada and the world'
      description: ''
      menu_name: 'main'
      link_path: 'http://international.gc.ca/world-monde/index.aspx?lang=eng'
      options: []
      external: 1
      weight: 14
      parent: 0
    - mlid: 'main_money'
      link_title: 'Money and finances'
      description: ''
      menu_name: 'main'
      link_path: 'https://www.canada.ca/en/services/finance.html'
      options: []
      external: 1
      weight: 15
      parent: 0
    - mlid: 'main_science'
      link_title: 'Science and innovation'
      description: ''
      menu_name: 'main'
      link_path: 'https://www.canada.ca/en/services/finance.html'
      options: []
      external: 1
      weight: 16
      parent: 0
   # Account.
    - mlid: user_register
      link_title: 'Registration'
      description: ''
      menu_name: account
      link_path: 'internal:/en/user/register'
      options: []
      external: 0
      weight: 5
      parent: 0
    - mlid: user_rules
      link_title: 'Rules of Engagement'
      description: ''
      menu_name: account
      link_path: 'internal:/en/rules-engagement'
      options: []
      external: 0
      weight: 10
      parent: 0
    # Footer Top.
    - mlid: 'ml_footer_top_1'
      link_title: 'All Contacts'
      description: 'All Contacts section.'
      menu_name: 'footer-top'
      link_path: 'https://www.canada.ca/en/contact.html'
      options: []
      external: 1
      weight: 0
      parent: 0
    - mlid: 'ml_footer_top_2'
      link_title: 'Departments and agencies'
      description: 'Departments and agencies section.'
      menu_name: 'footer-top'
      link_path: 'https://www.canada.ca/en/government/dept.html'
      options: []
      external: 1
      weight: 1
      parent: 0
    - mlid: 'ml_footer_top_3'
      link_title: 'About government'
      description: 'About government section.'
      menu_name: 'footer-top'
      link_path: 'https://www.canada.ca/en/government/system.html'
      options: []
      external: 1
      weight: 2
      parent: 0
    # Footer.
    - mlid: 'ml_footer_1'
      link_title: 'Jobs'
      description: 'Jobs section.'
      menu_name: 'footer'
      link_path: 'https://www.canada.ca/en/services/jobs.html'
      options: []
      external: 1
      weight: 0
      parent: 0
    - mlid: 'ml_footer_2'
      link_title: 'Immigration and citizenship'
      description: 'Immigration and citizenship section.'
      menu_name: 'footer'
      link_path: 'https://www.canada.ca/en/services/immigration-citizenship.html'
      options: []
      external: 1
      weight: 1
      parent: 0
    - mlid: 'ml_footer_3'
      link_title: 'Travel and tourism'
      description: 'Travel and tourism section.'
      menu_name: 'footer'
      link_path: 'https://travel.gc.ca'
      options: []
      external: 1
      weight: 2
      parent: 0
    - mlid: 'ml_footer_4'
      link_title: 'Business'
      description: 'Business section.'
      menu_name: 'footer'
      link_path: 'https://www.canada.ca/en/services/business.html'
      options: []
      external: 1
      weight: 3
      parent: 0
    - mlid: 'ml_footer_5'
      link_title: 'Benefits'
      description: 'Benefits section.'
      menu_name: 'footer'
      link_path: 'https://www.canada.ca/en/services/benefits.html'
      options: []
      external: 1
      weight: 4
      parent: 0
    - mlid: 'ml_footer_6'
      link_title: 'Health'
      description: 'Health section.'
      menu_name: 'footer'
      link_path: 'https://www.canada.ca/en/services/health.html'
      options: []
      external: 1
      weight: 5
      parent: 0
    - mlid: 'ml_footer_7'
      link_title: 'Taxes'
      description: 'Taxes section.'
      menu_name: 'footer'
      link_path: 'https://www.canada.ca/en/services/taxes.html'
      options: []
      external: 1
      weight: 6
      parent: 0
    - mlid: 'ml_footer_8'
      link_title: 'Environment and natural resources'
      description: 'Environment and natural resources section.'
      menu_name: 'footer'
      link_path: 'https://www.canada.ca/en/services/environment.html'
      options: []
      external: 1
      weight: 7
      parent: 0
    - mlid: 'ml_footer_9'
      link_title: 'National security and defence'
      description: 'National security and defence section.'
      menu_name: 'footer'
      link_path: 'https://www.canada.ca/en/services/defence.html'
      options: []
      external: 1
      weight: 8
      parent: 0
    - mlid: 'ml_footer_10'
      link_title: 'Culture, history and sport'
      description: 'Culture, history and sport section.'
      menu_name: 'footer'
      link_path: 'https://www.canada.ca/en/services/culture.html'
      options: []
      external: 1
      weight: 9
      parent: 0
    - mlid: 'ml_footer_11'
      link_title: 'Policing, justice and emergencies'
      description: 'Policing, justice and emergencies section.'
      menu_name: 'footer'
      link_path: 'https://www.canada.ca/en/services/policing.html'
      options: []
      external: 1
      weight: 10
      parent: 0
    - mlid: 'ml_footer_12'
      link_title: 'Transport and infrastructure'
      description: 'Transport and infrastructure section.'
      menu_name: 'footer'
      link_path: 'https://www.canada.ca/en/services/transport.html'
      options: []
      external: 1
      weight: 11
      parent: 0
    - mlid: 'ml_footer_13'
      link_title: 'Canada and the world'
      description: 'Canada and the world section.'
      menu_name: 'footer'
      link_path: 'https://international.gc.ca/world-monde/index.aspx?lang=eng'
      options: []
      external: 1
      weight: 12
      parent: 0
    - mlid: 'ml_footer_14'
      link_title: 'Money and finance'
      description: 'Money and finance section.'
      menu_name: 'footer'
      link_path: 'https://www.canada.ca/en/services/finance.html'
      options: []
      external: 1
      weight: 13
      parent: 0
    - mlid: 'ml_footer_15'
      link_title: 'Science and innovation'
      description: 'Science and innovation section.'
      menu_name: 'footer'
      link_path: 'https://www.canada.ca/en/services/science.html'
      options: []
      external: 1
      weight: 14
      parent: 0
    - mlid: 'ml_footer_16'
      link_title: 'Indigenous peoples'
      description: 'Indigenous peoples section.'
      menu_name: 'footer'
      link_path: 'https://www.canada.ca/en/services/indigenous-peoples.html'
      options: []
      external: 1
      weight: 15
      parent: 0
    - mlid: 'ml_footer_17'
      link_title: 'Veterans and military'
      description: 'Veterans and military section.'
      menu_name: 'footer'
      link_path: 'https://www.canada.ca/en/services/veterans.html'
      options: []
      external: 1
      weight: 16
      parent: 0
    - mlid: 'ml_footer_18'
      link_title: 'Youth'
      description: 'Youth section.'
      menu_name: 'footer'
      link_path: 'https://www.canada.ca/en/services/youth.html'
      options: []
      external: 1
      weight: 17
      parent: 0
  # Under 'ids', we identify source fields populated above which will uniquely
  # identify each imported item. The 'type' makes sure the migration map table
  # uses the proper schema type for stored the IDs.
  ids:
    mlid:
      type: string
process:
  id: mlid
  bundle: 'constants/bundle'
  title: link_title
  description: description
  menu_name: menu_name
  'link/uri': link_path
  'link/options': options
  route:
    plugin: route
    source:
      - link_path
      - options
  route_name: '@route/route_name'
  route_parameters: '@route/route_parameters'
  url: '@route/url'
  options: '@route/options'
  external: external
  weight: weight
  expanded:
    plugin: default_value
    default_value: 1
  enabled:
    plugin: default_value
    default_value: 1
  parent:
    plugin: menu_link_parent
    source:
      - parent
  changed:
    plugin: default_value
    default_value: ''
destination:
  plugin: entity:menu_link_content
migration_dependencies:
  required:
    - menu
