protected function FeedsCommerceCustomerProfileProcessor::entityLoad in Commerce Feeds 7
Loads an existing profile.
File
- plugins/
FeedsCommerceCustomerProfileProcessor.inc, line 42 - Class definition of FeedsCommerceCustomerProfileProcessor.
Class
- FeedsCommerceCustomerProfileProcessor
- Creates profiles from feed items.
Code
protected function entityLoad(FeedsSource $source, $profile_id) {
$profile = parent::entityLoad($source, $profile_id);
if ($this->config['update_existing'] == FEEDS_UPDATE_EXISTING) {
$profile->log = 'Updated by FeedsCommerceProfileProcessor';
}
else {
$profile->log = 'Replaced by FeedsCommerceProfileProcessor';
}
return $profile;
}