You are here

public function FeedsSource::setConfigFor in Feeds 8.2

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

lib/Drupal/feeds/FeedsSource.php, line 537
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\feeds

Code

public function setConfigFor(FeedsSourceInterface $client, $config) {
  $this->config[get_class($client)] = $config;
}