langcode: en
status: true
dependencies:
  enforced:
    module:
      - farm_migrate
      - farm_quantity_standard
id: farm_migrate_quantity_standard
label: 'Quantities (Standard)'
migration_group: farm_migrate_quantity
migration_tags:
  - 'Drupal 7'
  - 'farmOS 1.x'
class: Drupal\migrate\Plugin\Migration
field_plugin_method: null
cck_plugin_method: null
source:
  plugin: d7_farm_quantity
destination:
  plugin: 'entity_reference_revisions:quantity'
process:
  # Hard-code the bundle.
  type:
    plugin: default_value
    default_value: standard
  measure: measure
  value/numerator: value_numerator
  value/denominator: value_denominator
  units:
    plugin: migration_lookup
    migration: farm_migrate_taxonomy_unit
    source: units
  label: label
  uid:
    -
      plugin: migration_lookup
      migration: farm_migrate_user
      source: uid
      no_stub: true
    -
      plugin: default_value
      default_value: 1
migration_dependencies:
  required:
    - farm_migrate_user
    - farm_migrate_taxonomy_unit
  optional: {  }
