public function FeedsSource::configDefaults in Feeds 8.2
Return defaults for feed configuration.
Overrides FeedsConfigurable::configDefaults
File
- lib/
Drupal/ feeds/ FeedsSource.php, line 544 - 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 configDefaults() {
// Collect information from plugins.
$defaults = array();
foreach ($this->importer->plugin_types as $type) {
if ($this->importer->{$type}
->hasSourceConfig()) {
$defaults[get_class($this->importer->{$type})] = $this->importer->{$type}
->sourceDefaults();
}
}
return $defaults;
}