public function FeedsHTTPFetcher::sourceForm in Feeds 8.2
Expose source form.
Overrides FeedsPlugin::sourceForm
File
- lib/
Drupal/ feeds/ Plugin/ feeds/ fetcher/ FeedsHTTPFetcher.php, line 138 - Contains \Drupal\feeds\Plugin\feeds\fetcher\FeedsHTTPFetcher.
Class
- FeedsHTTPFetcher
- Defines an HTTP fetcher.
Namespace
Drupal\feeds\Plugin\feeds\fetcherCode
public function sourceForm($source_config) {
$form = array();
$form['source'] = array(
'#type' => 'textfield',
'#title' => t('URL'),
'#description' => t('Enter a feed URL.'),
'#default_value' => isset($source_config['source']) ? $source_config['source'] : '',
'#maxlength' => NULL,
'#required' => TRUE,
);
return $form;
}