d7_user.yml
Same filename in other branches
File
-
core/
modules/ user/ migrations/ d7_user.yml
View source
- id: d7_user
- label: User accounts
- audit: true
- migration_tags:
- - Drupal 7
- - Content
- class: Drupal\user\Plugin\migrate\User
- source:
- plugin: d7_user
- process:
- # If you are using this file to build a custom migration consider removing
- # the uid field to allow incremental migrations.
- uid: uid
- name: name
- pass: pass
- mail: mail
- created: created
- access: access
- login: login
- status: status
- timezone: timezone
- langcode:
- plugin: user_langcode
- source: entity_language
- fallback_to_site_default: false
- preferred_langcode:
- plugin: user_langcode
- source: language
- fallback_to_site_default: true
- preferred_admin_langcode:
- plugin: user_langcode
- source: language
- fallback_to_site_default: true
- init: init
- roles:
- plugin: migration_lookup
- migration: d7_user_role
- source: roles
- user_picture:
- -
- plugin: default_value
- source: picture
- default_value: null
- -
- plugin: migration_lookup
- migration: d7_file
- destination:
- plugin: entity:user
- migration_dependencies:
- required:
- - d7_user_role
- optional:
- - d7_field_instance
- - d7_file
- - language
- - default_language
- - user_picture_field_instance
- - user_picture_entity_display
- - user_picture_entity_form_display
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.