You are here

public function FeedsProcessor::configDefaults in Feeds 7.2

Same name and namespace in other branches
  1. 6 plugins/FeedsProcessor.inc \FeedsProcessor::configDefaults()
  2. 7 plugins/FeedsProcessor.inc \FeedsProcessor::configDefaults()

Overrides FeedsConfigurable::configDefaults().

Invokes a hook to add in additional default configuration.

Overrides FeedsPlugin::configDefaults

3 calls to FeedsProcessor::configDefaults()
FeedsNodeProcessor::configDefaults in plugins/FeedsNodeProcessor.inc
Override parent::configDefaults().
FeedsTermProcessor::configDefaults in plugins/FeedsTermProcessor.inc
Override parent::configDefaults().
FeedsUserProcessor::configDefaults in plugins/FeedsUserProcessor.inc
Override parent::configDefaults().
3 methods override FeedsProcessor::configDefaults()
FeedsNodeProcessor::configDefaults in plugins/FeedsNodeProcessor.inc
Override parent::configDefaults().
FeedsTermProcessor::configDefaults in plugins/FeedsTermProcessor.inc
Override parent::configDefaults().
FeedsUserProcessor::configDefaults in plugins/FeedsUserProcessor.inc
Override parent::configDefaults().

File

plugins/FeedsProcessor.inc, line 981
Contains FeedsProcessor and related classes.

Class

FeedsProcessor
Abstract class, defines interface for processors.

Code

public function configDefaults() {
  $info = $this
    ->entityInfo();
  $bundle = NULL;
  if (empty($info['entity keys']['bundle'])) {
    $bundle = $this
      ->entityType();
  }
  return array(
    'mappings' => array(),
    'insert_new' => FEEDS_INSERT_NEW,
    'update_existing' => FEEDS_SKIP_EXISTING,
    'update_non_existent' => FEEDS_SKIP_NON_EXISTENT,
    'input_format' => NULL,
    'skip_hash_check' => FALSE,
    'bundle' => $bundle,
    'language' => LANGUAGE_NONE,
  ) + parent::configDefaults();
}