public function FeedsSource::getConfigFor in Feeds 8.2
Returns the configuration for a specific client class.
Parameters
FeedsSourceInterface $client: An object that is an implementer of FeedsSourceInterface.
Return value
An array stored for $client.
File
- lib/
Drupal/ feeds/ FeedsSource.php, line 521 - 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.
Namespace
Drupal\feedsCode
public function getConfigFor(FeedsSourceInterface $client) {
$class = get_class($client);
return isset($this->config[$class]) ? $this->config[$class] : $client
->sourceDefaults();
}