uuid: bb0b0cb7-d2e1-413a-a3ef-0dc31dba95bb
langcode: en
status: true
dependencies: {  }
id: upgrade_d7_user_settings
class: Drupal\migrate\Plugin\Migration
field_plugin_method: null
cck_plugin_method: null
migration_tags:
  - 'Drupal 7'
  - Configuration
migration_group: migrate_drupal_7
label: 'User configuration'
source:
  plugin: variable
  variables:
    - user_mail_status_blocked_notify
    - user_mail_status_activated_notify
    - user_email_verification
    - user_register
    - anonymous
  source_module: user
process:
  notify/status_blocked:
    -
      plugin: get
      source: user_mail_status_blocked_notify
  notify/status_activated:
    -
      plugin: get
      source: user_mail_status_activated_notify
  verify_mail:
    -
      plugin: get
      source: user_email_verification
  register:
    -
      plugin: static_map
      source: user_register
      default_value: visitors_admin_approval
      map:
        2: visitors_admin_approval
        1: visitors
        0: admin_only
  anonymous:
    -
      plugin: get
      source: anonymous
destination:
  plugin: config
  config_name: user.settings
migration_dependencies:
  required: {  }
  optional: {  }
