You are here

public function FeedsEntityProcessor::getMappingTargets in Feeds entity processor 7

Overrides parent::getMappingTargets().

File

src/FeedsEntityProcessor.inc, line 263
Contains FeedsEntityProcessor.

Class

FeedsEntityProcessor
Creates entities from feed items.

Code

public function getMappingTargets() {
  $targets = parent::getMappingTargets();
  foreach ($this
    ->entityProperties() as $name => $property) {
    $plugin = feeds_entity_processor_plugin($name, $property, $this
      ->entityWrapper(), $this);
    $targets[$name] = $plugin
      ->getMappingTarget();
  }
  $entity_info = $this
    ->entityInfo();
  $targets[$entity_info['entity keys']['id']]['optional_unique'] = TRUE;

  // Let other modules expose mapping targets.
  $this
    ->getHookTargets($targets);
  return $targets;
}