id: d7_simplenews_subscriber
dependencies:
  module:
    - simplenews
label: Simplenews subscribers
migration_tags:
  - Drupal 7
  - Content
source:
  plugin: simplenews_subscriber
process:
  id: snid
  status: activated
  mail: mail
  uid: uid
  langcode: language
  changes: changes
  created: created
  subscriptions:
    plugin: sub_process
    source: subscriptions
    process:
      target_id:
        plugin: migration_lookup
        migration: d7_simplenews_newsletter
        source: newsletter_id
      status: status
      timestamp: timestamp
      source: source
destination:
  plugin: entity:simplenews_subscriber
  destination_module: simplenews
migration_dependencies:
  required:
    - d7_simplenews_newsletter
