uuid: cc2cfabb-43f1-485a-b126-1289956f9837
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: {  }
