public function FeedsSource::setConfigFor in Feeds 7
Same name and namespace in other branches
- 7.2 includes/FeedsSource.inc \FeedsSource::setConfigFor()
 
Sets the configuration for a specific client class.
Parameters
FeedsSourceInterface $client: An object that is an implementer of FeedsSourceInterface.
$config: The configuration for $client.
Return value
An array stored for $client.
File
- includes/
FeedsSource.inc, line 333  - Definition of FeedsSourceInterface and FeedsSource class.
 
Class
- FeedsSource
 - This class encapsulates a source of a feed. It stores where the feed can be found and how to import it.
 
Code
public function setConfigFor(FeedsSourceInterface $client, $config) {
  $this->config[get_class($client)] = $config;
}