id: upgrade_d7_field_group_node_session
class: Drupal\migrate\Plugin\Migration
migration_tags:
  - 'Drupal 7'
  - Configuration
  - d7_field_group
  - tag1_configuration
label: 'Field groups of node (bundle: session)'
source:
  key: migrate
  plugin: d7_field_group
  entity_type: node
  bundle: session
process:
  entity_type:
    -
      plugin: get
      source: entity_type
    -
      plugin: static_map
      map:
        field_collection_item: paragraph
        paragraphs_item: paragraph
      bypass: true
  bundle:
    -
      plugin: get
      source: bundle
  mode:
    -
      plugin: static_map
      source: mode
      bypass: true
      map:
        form: default
  type:
    -
      plugin: static_map
      source: mode
      default_value: entity_view_display
      map:
        form: entity_form_display
  group_name:
    -
      plugin: get
      source: group_name
  settings:
    -
      plugin: get
      source: settings
destination:
  plugin: d7_field_group
migration_dependencies:
  required:
    - upgrade_d7_node_type
    - upgrade_d7_view_modes
  optional: {  }
