id: gcweb_menu_link_translation
label: Embedded data feed of menu link content
migration_group: gcweb_translation
migration_tags:
  - Menu
dependencies:
  enforced:
    module:
      - wxt_ext_migration
source:
  plugin: embedded_data
  translations: true
  default_lang: true
  data_rows:
    # Brand.
    - mlid: 'ml_brand_1'
      link_title: 'Médias sociaux'
      description: 'Médias sociaux section.'
      menu_name: 'brand-fr'
      link_path: 'https://www.canada.ca/fr/sociaux.html'
      options: []
      external: 1
      weight: 0
      parent: 0
    - mlid: 'ml_brand_2'
      link_title: 'Applications mobiles'
      description: 'Applications mobiles section.'
      menu_name: 'brand-fr'
      link_path: 'https://www.canada.ca/fr/mobile.html'
      options: []
      external: 1
      weight: 1
      parent: 0
    - mlid: 'ml_brand_3'
      link_title: 'À propos de Canada.ca'
      description: 'À propos de Canada.ca section.'
      menu_name: 'brand-fr'
      link_path: 'https://www.canada.ca/fr/gouvernement/a-propos.html'
      options: []
      external: 1
      weight: 2
      parent: 0
    - mlid: 'ml_brand_4'
      link_title: 'Avis'
      description: 'Avis section.'
      menu_name: 'brand-fr'
      link_path: 'https://www.canada.ca/fr/transparence/avis.html'
      options: []
      external: 1
      weight: 3
      parent: 0
    - mlid: 'ml_brand_5'
      link_title: 'Confidentialité'
      description: 'Confidentialité section.'
      menu_name: 'brand-fr'
      link_path: 'https://www.canada.ca/fr/transparence/confidentialite.html'
      options: []
      external: 1
      weight: 4
      parent: 0
    # Sidebar.
    - mlid: 'ml_sidebar_1'
      link_title: 'Drupal'
      description: 'Drupal.org'
      menu_name: 'sidebar_fr'
      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_fr'
      link_path: 'internal:/node/2'
      options: []
      external: 0
      weight: 0
      parent: 'ml_sidebar_1'
    - mlid: 'ml_sidebar_1_sub_1_sub_1'
      link_title: 'Pourquoi Drupal 9'
      description: 'Découvrez la principale plate-forme d''expérience numérique au monde.'
      menu_name: 'sidebar_fr'
      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: 'Améliorations multilingues'
      description: 'Améliorations multilingues de Drupal 9.'
      menu_name: 'sidebar_fr'
      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 pour Drupal 9'
      description: 'Drupal WxT pour Drupal 9'
      menu_name: 'sidebar_fr'
      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 sur GitHub'
      menu_name: 'sidebar_fr'
      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 sur Drupal.org.'
      menu_name: 'sidebar_fr'
      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: 'Emplois et milieu de travail'
      description: ''
      menu_name: 'main-fr'
      link_path: 'https://www.canada.ca/fr/services/emplois.html'
      options: []
      external: 1
      weight: 2
      parent: 0
    - mlid: 'main_immigration'
      link_title: 'Immigration et citoyenneté'
      description: ''
      menu_name: 'main-fr'
      link_path: 'https://www.canada.ca/fr/services/immigration-citoyennete.html'
      options: []
      external: 1
      weight: 3
      parent: 0
    - mlid: 'main_travel'
      link_title: 'Voyage et tourisme'
      description: ''
      menu_name: 'main-fr'
      link_path: 'https://voyage.gc.ca/'
      options: []
      external: 1
      weight: 4
      parent: 0
    - mlid: 'main_business'
      link_title: 'Entreprises et industrie'
      description: ''
      menu_name: 'main-fr'
      link_path: 'https://www.canada.ca/fr/services/entreprises.html'
      options: []
      external: 1
      weight: 5
      parent: 0
    - mlid: 'main_benefits'
      link_title: 'Prestations'
      description: ''
      menu_name: 'main-fr'
      link_path: 'https://www.canada.ca/fr/services/prestations.html'
      options: []
      external: 1
      weight: 6
      parent: 0
    - mlid: 'main_health'
      link_title: 'Santé'
      description: ''
      menu_name: 'main-fr'
      link_path: 'https://www.canada.ca/fr/services/sante.html'
      options: []
      external: 1
      weight: 7
      parent: 0
    - mlid: 'main_taxes'
      link_title: 'Impôts'
      description: ''
      menu_name: 'main-fr'
      link_path: 'https://www.canada.ca/fr/services/impots.html'
      options: []
      external: 1
      weight: 8
      parent: 0
    - mlid: 'main_environmental'
      link_title: 'Environnement et ressources naturelles'
      description: ''
      menu_name: 'main-fr'
      link_path: 'https://www.canada.ca/fr/services/environnement.html'
      options: []
      external: 1
      weight: 9
      parent: 0
    - mlid: 'main_national_security'
      link_title: 'Sécurité nationale et défense'
      description: ''
      menu_name: 'main-fr'
      link_path: 'https://www.canada.ca/fr/services/defense.html'
      options: []
      external: 1
      weight: 10
      parent: 0
    - mlid: 'main_culture'
      link_title: 'Culture, histoire et sport'
      description: ''
      menu_name: 'main-fr'
      link_path: 'https://www.canada.ca/fr/services/culture.html'
      options: []
      external: 1
      weight: 11
      parent: 0
    - mlid: 'main_policing'
      link_title: 'Services de police, justice et urgences'
      description: ''
      menu_name: 'main-fr'
      link_path: 'https://www.canada.ca/fr/services/police.html'
      options: []
      external: 1
      weight: 12
      parent: 0
    - mlid: 'main_transport'
      link_title: 'Transport et infrastructure'
      description: ''
      menu_name: 'main-fr'
      link_path: 'https://www.canada.ca/fr/services/transport.html'
      options: []
      external: 1
      weight: 13
      parent: 0
    - mlid: 'main_canada'
      link_title: 'Canada et le monde'
      description: ''
      menu_name: 'main-fr'
      link_path: 'http://international.gc.ca/world-monde/index.aspx?lang=fra'
      options: []
      external: 1
      weight: 14
      parent: 0
    - mlid: 'main_money'
      link_title: 'Argent et finances'
      description: ''
      menu_name: 'main-fr'
      link_path: 'https://www.canada.ca/fr/services/finance.html'
      options: []
      external: 1
      weight: 15
      parent: 0
    - mlid: 'main_science'
      link_title: 'Science et innovation'
      description: ''
      menu_name: 'main-fr'
      link_path: 'https://www.canada.ca/fr/services/science.html'
      options: []
      external: 1
      weight: 16
      parent: 0
    # Footer Top.
    - mlid: 'ml_footer_top_1'
      link_title: 'Toutes les coordonnées'
      description: 'Toutes les coordonnées section.'
      menu_name: 'footer-top-fr'
      link_path: 'https://www.canada.ca/fr/contact.html'
      options: []
      external: 1
      weight: 0
      parent: 0
    - mlid: 'ml_footer_top_2'
      link_title: 'Ministères et organismes'
      description: 'Ministères et organismes section.'
      menu_name: 'footer-top-fr'
      link_path: 'https://www.canada.ca/fr/gouvernement/min.html'
      options: []
      external: 1
      weight: 1
      parent: 0
    - mlid: 'ml_footer_top_3'
      link_title: 'À propos du gouvernement'
      description: 'À propos du gouvernement section.'
      menu_name: 'footer-top-fr'
      link_path: 'https://www.canada.ca/fr/gouvernement/systeme.html'
      options: []
      external: 1
      weight: 2
      parent: 0
    # Footer.
    - mlid: 'ml_footer_1'
      link_title: 'Emplois'
      description: 'Emplois section.'
      menu_name: 'footer-fr'
      link_path: 'https://www.canada.ca/fr/services/emplois.html'
      options: []
      external: 1
      weight: 0
      parent: 0
    - mlid: 'ml_footer_2'
      link_title: 'Immigration et citoyenneté'
      description: 'Immigration et citoyenneté section.'
      menu_name: 'footer-fr'
      link_path: 'https://www.canada.ca/fr/services/immigration-citoyennete.html'
      options: []
      external: 1
      weight: 1
      parent: 0
    - mlid: 'ml_footer_3'
      link_title: 'Voyage et tourisme'
      description: 'Voyage et tourisme section.'
      menu_name: 'footer-fr'
      link_path: 'https://voyage.gc.ca/'
      options: []
      external: 1
      weight: 2
      parent: 0
    - mlid: 'ml_footer_4'
      link_title: 'Entreprises'
      description: 'Entreprises section.'
      menu_name: 'footer-fr'
      link_path: 'https://www.canada.ca/fr/services/entreprises.html'
      options: []
      external: 1
      weight: 3
      parent: 0
    - mlid: 'ml_footer_5'
      link_title: 'Prestations'
      description: 'Prestations section.'
      menu_name: 'footer-fr'
      link_path: 'https://www.canada.ca/fr/services/prestations.html'
      options: []
      external: 1
      weight: 4
      parent: 0
    - mlid: 'ml_footer_6'
      link_title: 'Santé'
      description: 'Santé section.'
      menu_name: 'footer-fr'
      link_path: 'https://www.canada.ca/fr/services/sante.html'
      options: []
      external: 1
      weight: 5
      parent: 0
    - mlid: 'ml_footer_7'
      link_title: 'Impôts'
      description: 'Impôts section.'
      menu_name: 'footer-fr'
      link_path: 'https://www.canada.ca/fr/services/impots.html'
      options: []
      external: 1
      weight: 6
      parent: 0
    - mlid: 'ml_footer_8'
      link_title: 'Environnement et ressources naturelles'
      description: 'Environnement et ressources naturelles section.'
      menu_name: 'footer-fr'
      link_path: 'https://www.canada.ca/fr/services/environnement.html'
      options: []
      external: 1
      weight: 7
      parent: 0
    - mlid: 'ml_footer_9'
      link_title: 'Sécurité nationale et défense'
      description: 'Sécurité nationale et défense section.'
      menu_name: 'footer-fr'
      link_path: 'https://www.canada.ca/fr/services/defense.html'
      options: []
      external: 1
      weight: 8
      parent: 0
    - mlid: 'ml_footer_10'
      link_title: 'Culture, histoire et sport'
      description: 'Culture, histoire et sport section.'
      menu_name: 'footer-fr'
      link_path: 'https://www.canada.ca/fr/services/culture.html'
      options: []
      external: 1
      weight: 9
      parent: 0
    - mlid: 'ml_footer_11'
      link_title: 'Services de police, justice et urgences'
      description: 'Services de police, justice et urgences section.'
      menu_name: 'footer-fr'
      link_path: 'https://www.canada.ca/fr/services/police.html'
      options: []
      external: 1
      weight: 10
      parent: 0
    - mlid: 'ml_footer_12'
      link_title: 'Transport et infrastructure'
      description: 'Transport et infrastructure section.'
      menu_name: 'footer-fr'
      link_path: 'https://www.canada.ca/fr/services/transport.html'
      options: []
      external: 1
      weight: 11
      parent: 0
    - mlid: 'ml_footer_13'
      link_title: 'Le Canada et le monde'
      description: 'Le Canada et le monde section.'
      menu_name: 'footer-fr'
      link_path: 'https://www.international.gc.ca/world-monde/index.aspx?lang=fra'
      options: []
      external: 1
      weight: 12
      parent: 0
    - mlid: 'ml_footer_14'
      link_title: 'Argent et finance'
      description: 'Argent et finance section.'
      menu_name: 'footer-fr'
      link_path: 'https://www.canada.ca/fr/services/finance.html'
      options: []
      external: 1
      weight: 13
      parent: 0
    - mlid: 'ml_footer_15'
      link_title: 'Science et innovation'
      description: 'Science et innovation section.'
      menu_name: 'footer-fr'
      link_path: 'https://www.canada.ca/fr/services/science.html'
      options: []
      external: 1
      weight: 14
      parent: 0
    - mlid: 'ml_footer_16'
      link_title: 'Autochtones'
      description: 'Autochtones section.'
      menu_name: 'footer-fr'
      link_path: 'https://www.canada.ca/fr/services/autochtones.html'
      options: []
      external: 1
      weight: 15
      parent: 0
    - mlid: 'ml_footer_17'
      link_title: 'Vétérans et militaires'
      description: 'Vétérans et militaires section.'
      menu_name: 'footer-fr'
      link_path: 'https://www.canada.ca/fr/services/veterans.html'
      options: []
      external: 1
      weight: 16
      parent: 0
    - mlid: 'ml_footer_18'
      link_title: 'Jeunesse'
      description: 'Jeunesse section.'
      menu_name: 'footer-fr'
      link_path: 'https://www.canada.ca/fr/services/jeunesse.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: ''
  langcode:
    plugin: default_value
    default_value: "fr"
destination:
  plugin: entity:menu_link_content
migration_dependencies:
  required:
    - gcweb_menu_link
