protected function FeedsRulesProcessor::newEntity in Feeds Rules 7
Creates a new pseudo entity in memory and returns it. It holds only the component key, and an empty params array, that will be filled during mapping.
File
- plugins/
FeedsRulesProcessor.inc, line 36 - Defines the Feeds Rules processor plugin.
Class
- FeedsRulesProcessor
- Feeds processor plugin to process a rules component for each feed items.
Code
protected function newEntity(FeedsSource $source) {
$entity = new stdClass();
$entity->component = $this->config['component'];
$entity->params = array();
return $entity;
}