protected function FeedsTermProcessor::newEntity in Feeds 8.2
Creates a new term in memory and returns it.
@todo Use entityNG.
Overrides FeedsProcessor::newEntity
File
- lib/Drupal/ feeds/ Plugin/ feeds/ processor/ FeedsTermProcessor.php, line 53 
- FeedsTermProcessor class.
Class
- FeedsTermProcessor
- Defines a taxonomy term processor.
Namespace
Drupal\feeds\Plugin\feeds\processorCode
protected function newEntity(FeedsSource $source) {
  return entity_create('taxonomy_term', array(
    'vid' => $this
      ->bundle(),
    'format' => isset($this->config['input_format']) ? $this->config['input_format'] : filter_fallback_format(),
  ))
    ->getBCEntity();
}