public function FeedsSource::getConfigFor in Feeds 7.2
Same name and namespace in other branches
- 6 includes/FeedsSource.inc \FeedsSource::getConfigFor()
- 7 includes/FeedsSource.inc \FeedsSource::getConfigFor()
Returns the configuration for a specific client class.
Parameters
FeedsSourceInterface $client: An object that is an implementer of FeedsSourceInterface.
Return value
array An array stored for $client.
File
- includes/
FeedsSource.inc, line 1086 - Definition of FeedsSourceInterface, FeedsState and FeedsSource class.
Class
- FeedsSource
- Holds the source of a feed to import.
Code
public function getConfigFor(FeedsSourceInterface $client) {
$class = get_class($client);
return isset($this->config[$class]) ? $this->config[$class] : $client
->sourceDefaults();
}