You are here

public function MigrateCommerceCustomerProfileReferenceFieldHandler::__construct in Commerce Migrate 7

Construct a simple field handler.

Parameters

$options: Array of options (rather than unamed parameters so you don't have to what TRUE or FALSE means). The following keys are used:

  • 'value_key' string with the name of the key in the fields value array.
  • 'skip_empty' Boolean indicating that empty values should not be saved.

Overrides MigrateSimpleFieldHandler::__construct

File

plugins/destinations/fields.inc, line 10
Support for processing commerce fields (product reference, customer profile reference, price)

Class

MigrateCommerceCustomerProfileReferenceFieldHandler
@file Support for processing commerce fields (product reference, customer profile reference, price)

Code

public function __construct() {
  parent::__construct(array(
    'value_key' => 'profile_id',
    'skip_empty' => TRUE,
  ));
  $this
    ->registerTypes(array(
    'commerce_customer_profile_reference',
  ));
}