You are here

protected function FeedsEntityProcessor::entityProperties in Feeds entity processor 7

Returns the entity properties that this processor is using.

Return value

array An array keyed by property name.

5 calls to FeedsEntityProcessor::entityProperties()
FeedsEntityProcessor::configForm in src/FeedsEntityProcessor.inc
Overrides parent::configForm().
FeedsEntityProcessor::configFormValidate in src/FeedsEntityProcessor.inc
Overrides parent::configFormValidate().
FeedsEntityProcessor::getMappingTargets in src/FeedsEntityProcessor.inc
Overrides parent::getMappingTargets().
FeedsEntityProcessor::newEntity in src/FeedsEntityProcessor.inc
Implements FeedsProcessor::newEntity().
FeedsEntityProcessor::setTargetElement in src/FeedsEntityProcessor.inc

File

src/FeedsEntityProcessor.inc, line 71
Contains FeedsEntityProcessor.

Class

FeedsEntityProcessor
Creates entities from feed items.

Code

protected function entityProperties() {
  $properties = array();
  $bundle_key = $this
    ->bundleKey();
  foreach ($this
    ->entityWrapper()
    ->getPropertyInfo() as $name => $property) {

    // Skip bundle.
    if ($bundle_key === $name) {
      continue;
    }
    if (empty($property['setter callback']) || !empty($property['field'])) {
      continue;
    }
    $properties[$name] = $property;
  }
  return $properties;
}