You are here

public function FeedsSource::getConfigFor in Feeds 6

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

Convenience function. Returns the configuration for a specific class.

Parameters

FeedsSourceInterface $client: An object that is an implementer of FeedsSourceInterface.

Return value

An array stored for $client.

File

includes/FeedsSource.inc, line 315
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 getConfigFor(FeedsSourceInterface $client) {
  $class = get_class($client);
  return isset($this->config[$class]) ? $this->config[$class] : $client
    ->sourceDefaults();
}