public function FeedsSource::configForm in Feeds 8.2
Override parent::configForm().
Overrides FeedsConfigurable::configForm
File
- lib/
Drupal/ feeds/ FeedsSource.php, line 558 - 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 configForm(&$form_state) {
// Collect information from plugins.
$form = array();
foreach ($this->importer->plugin_types as $type) {
if ($this->importer->{$type}
->hasSourceConfig()) {
$class = get_class($this->importer->{$type});
$config = isset($this->config[$class]) ? $this->config[$class] : array();
$form[$class] = $this->importer->{$type}
->sourceForm($config);
$form[$class]['#tree'] = TRUE;
}
}
return $form;
}