view core/modules/user/migrations/user_picture_field.yml @ 19:fa3358dc1485 tip

Add ndrum files
author Chris Cannam
date Wed, 28 Aug 2019 13:14:47 +0100
parents 1fec387a4317
children
line wrap: on
line source
id: user_picture_field
label: User picture field configuration
migration_tags:
  - Drupal 6
  - Drupal 7
  - Configuration
source:
  # We do an empty source and a proper destination to have an idmap for
  # dependencies.
  plugin: md_empty
  constants:
    entity_type: user
    type: image
    name: user_picture
    cardinality: 1
  source_module: user
process:
  entity_type: 'constants/entity_type'
  field_name: 'constants/name'
  type: 'constants/type'
  cardinality: 'constants/cardinality'
destination:
  plugin: entity:field_storage_config
  dependencies:
    module:
      - image