public function ParserBase::buildFeedForm in Feeds extensible parsers 8
File
- src/
Feeds/ Parser/ ParserBase.php, line 802
Class
- ParserBase
- The Feeds extensible parser.
Namespace
Drupal\feeds_ex\Feeds\ParserCode
public function buildFeedForm(array $form, FormStateInterface $form_state, FeedInterface $feed) {
if (!$this
->hasSourceConfig()) {
return [];
}
$form = $this
->buildConfigurationForm($form, $form_state);
$form['add']['machine_name']['#machine_name']['source'] = [
'feeds',
get_class($this),
'add',
'name',
];
return $form;
}