public function Feed::getConfigurationFor in Feeds 8.3
Returns the configuration for a specific client plugin.
Parameters
\Drupal\feeds\Plugin\Type\FeedsPluginInterface $client: A Feeds plugin.
Return value
array The plugin configuration being managed by this Feed.
Overrides FeedInterface::getConfigurationFor
File
- src/
Entity/ Feed.php, line 509
Class
- Feed
- Defines the feed entity class.
Namespace
Drupal\feeds\EntityCode
public function getConfigurationFor(FeedsPluginInterface $client) {
$type = $client
->pluginType();
// @todo Figure out why for the UploadFetcher there is no config available.
$data = $this
->get('config')->{$type};
$data = !empty($data) ? $data : [];
return $data + $client
->defaultFeedConfiguration();
}