public function FeedsConfigurable::setConfig in Feeds 7
Same name and namespace in other branches
- 6 includes/FeedsConfigurable.inc \FeedsConfigurable::setConfig()
- 7.2 includes/FeedsConfigurable.inc \FeedsConfigurable::setConfig()
Set configuration.
Parameters
$config: Array containing configuration information. Config array will be filtered by the keys returned by configDefaults() and populated with default values that are not included in $config.
2 calls to FeedsConfigurable::setConfig()
- FeedsConfigurable::copy in includes/
FeedsConfigurable.inc - Copy a configuration.
- FeedsImporter::copy in includes/
FeedsImporter.inc - Copy a FeedsImporter configuration into this importer.
File
- includes/
FeedsConfigurable.inc, line 113 - 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 setConfig($config) {
$defaults = $this
->configDefaults();
$this->config = array_intersect_key($config, $defaults) + $defaults;
}