abstract protected function FeedsProcessor::newEntity in Feeds 8.2
Create a new entity.
Parameters
$source: The feeds source that spawns this entity.
Return value
A new entity object.
2 calls to FeedsProcessor::newEntity()
- FeedsProcessor::entityLoad in lib/
Drupal/ feeds/ Plugin/ FeedsProcessor.php - Load an existing entity.
- FeedsProcessor::process in lib/
Drupal/ feeds/ Plugin/ FeedsProcessor.php - Process the result of the parsing stage.
3 methods override FeedsProcessor::newEntity()
- FeedsNodeProcessor::newEntity in lib/
Drupal/ feeds/ Plugin/ feeds/ processor/ FeedsNodeProcessor.php - Creates a new node in memory and returns it.
- FeedsTermProcessor::newEntity in lib/
Drupal/ feeds/ Plugin/ feeds/ processor/ FeedsTermProcessor.php - Creates a new term in memory and returns it.
- FeedsUserProcessor::newEntity in lib/
Drupal/ feeds/ Plugin/ feeds/ processor/ FeedsUserProcessor.php - Creates a new user account in memory and returns it.
File
- lib/
Drupal/ feeds/ Plugin/ FeedsProcessor.php, line 85 - Contains FeedsProcessor and related classes.
Class
- FeedsProcessor
- Abstract class, defines interface for processors.
Namespace
Drupal\feeds\PluginCode
protected abstract function newEntity(FeedsSource $source);