You are here

public function FeedsConfigurable::addConfig in Feeds 6

Same name and namespace in other branches
  1. 7.2 includes/FeedsConfigurable.inc \FeedsConfigurable::addConfig()
  2. 7 includes/FeedsConfigurable.inc \FeedsConfigurable::addConfig()

Similar to setConfig but adds to existing configuration.

Parameters

$config: Array containing configuration information. Will be filtered by the keys returned by configDefaults().

2 calls to FeedsConfigurable::addConfig()
FeedsConfigurable::configFormSubmit in includes/FeedsConfigurable.inc
Submission handler for configForm().
FeedsDataProcessor::addConfig in plugins/FeedsDataProcessor.inc
Override parent::addConfig().
1 method overrides FeedsConfigurable::addConfig()
FeedsDataProcessor::addConfig in plugins/FeedsDataProcessor.inc
Override parent::addConfig().

File

includes/FeedsConfigurable.inc, line 132
FeedsConfigurable and helper functions.

Class

FeedsConfigurable
Base class for configurable classes. Captures configuration handling, form handling and distinguishes between in-memory configuration and persistent configuration.

Code

public function addConfig($config) {
  $this->config = is_array($this->config) ? array_merge($this->config, $config) : $config;
  $default_keys = $this
    ->configDefaults();
  $this->config = array_intersect_key($this->config, $default_keys);
}