You are here

public function MigrateCommerceFileFieldHandler::prepare in Commerce File 7

Implementation of MigrateFieldHandler::prepare().

Prepare file data for saving as a Field API file field.

Return value

array Field API array suitable for inserting in the destination object.

Overrides MigrateFileFieldBaseHandler::prepare

File

migrate/destinations/fields.inc, line 54
Support for processing commerce file fields

Class

MigrateCommerceFileFieldHandler
Handle for commerce_file fields;

Code

public function prepare($entity, array $field_info, array $instance, array $values) {

  // store the instance info for use in buildFieldArray()
  $this->_field_instance = $instance;

  // call file field's prepare
  $return = parent::prepare($entity, $field_info, $instance, $values);
  return $return;
}