protected function FeedsFieldCollectionProcessor::entityLoad in Field collection feeds 7
Loads an existing entity.
If the update existing method is not FEEDS_UPDATE_EXISTING, only the entity table will be loaded, foregoing the entity_load API for better performance.
File
- plugins/
FeedsFieldCollectionProcessor.inc, line 46 - Class definition of FeedsFieldCollectionProcessor.
Class
- FeedsFieldCollectionProcessor
- Creates field collection from feed items.
Code
protected function entityLoad(FeedsSource $source, $id) {
$result = entity_load($this
->entityType(), array(
$id,
));
return reset($result);
}