You are here

protected function FeedsCommerceCustomerProfileProcessor::newEntity in Commerce Feeds 7

Creates a new profile in memory and returns it.

File

plugins/FeedsCommerceCustomerProfileProcessor.inc, line 32
Class definition of FeedsCommerceCustomerProfileProcessor.

Class

FeedsCommerceCustomerProfileProcessor
Creates profiles from feed items.

Code

protected function newEntity(FeedsSource $source) {
  $type = $this->config['customer_profile_type'];
  $profile = commerce_customer_profile_new($type, 0);
  $profile->log = 'Created by FeedsCommerceProfileProcessor';
  return $profile;
}