uuid: b2ebbf8d-e2ef-4821-9261-1447a6fe5425
langcode: en
status: true
dependencies: {  }
id: upgrade_d7_menu_links
class: Drupal\migrate\Plugin\Migration
field_plugin_method: null
cck_plugin_method: null
migration_tags:
  - 'Drupal 7'
  - Content
migration_group: migrate_drupal_7
label: 'Menu links'
source:
  plugin: nar_menu_link
process:
  skip_translation:
    -
      plugin: skip_on_empty
      method: row
      source: skip_translation
  id:
    -
      plugin: get
      source: mlid
  langcode:
    -
      plugin: default_value
      source: language
      default_value: und
  bundle:
    -
      plugin: get
      source: menu_bundle
  title:
    -
      plugin: get
      source: link_title
  description:
    -
      plugin: get
      source: description
  menu_name:
    -
      plugin: migration_lookup
      migration: upgrade_d7_menu
      source: menu_name
    -
      plugin: skip_on_empty
      method: row
  link/uri:
    -
      plugin: link_uri
      source: link_path
  link/options:
    -
      plugin: get
      source: options
  route:
    -
      plugin: route
      source:
        - link_path
        - options
  route_name:
    -
      plugin: get
      source: '@route/route_name'
  route_parameters:
    -
      plugin: get
      source: '@route/route_parameters'
  url:
    -
      plugin: get
      source: '@route/url'
  options:
    -
      plugin: get
      source: '@route/options'
  external:
    -
      plugin: get
      source: external
  weight:
    -
      plugin: get
      source: weight
  expanded:
    -
      plugin: get
      source: expanded
  enabled:
    -
      plugin: nar_menu_item_enabled
      source: enabled
  parent:
    -
      plugin: menu_link_parent
      source:
        - plid
        - '@menu_name'
        - parent_link_path
  changed:
    -
      plugin: get
      source: updated
destination:
  plugin: 'entity:menu_link_content'
  no_stub: true
migration_dependencies:
  required:
    - upgrade_d7_menu
  optional:
    - upgrade_d7_node_complete_advpoll
    - upgrade_d7_node_complete_biography
    - upgrade_d7_node_complete_bio_profile
    - upgrade_d7_node_complete_event
    - upgrade_d7_node_complete_media
    - upgrade_d7_node_complete_multichoice
    - upgrade_d7_node_complete_nar_organic_groups
    - upgrade_d7_node_complete_news_release
    - upgrade_d7_node_complete_page
    - upgrade_d7_node_complete_post
    - upgrade_d7_node_complete_publications
    - upgrade_d7_node_complete_publication_issue
    - upgrade_d7_node_complete_quiz
    - upgrade_d7_node_complete_quiz_page
    - upgrade_d7_node_complete_rss
    - upgrade_d7_node_complete_site_area
    - upgrade_d7_node_complete_slideshow
    - upgrade_d7_node_complete_topic
    - upgrade_d7_node_complete_topic_tab
    - upgrade_d7_node_complete_webform
    - upgrade_d7_menu
