You are here

public function HttpFetcherFeedForm::submitConfigurationForm in Feeds 8.3

Form submission handler.

Parameters

array $form: An associative array containing the structure of the plugin form as built by static::buildConfigurationForm().

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Calling code should pass on a subform state created through \Drupal\Core\Form\SubformState::createForSubform().

Overrides ExternalPluginFormBase::submitConfigurationForm

File

src/Feeds/Fetcher/Form/HttpFetcherFeedForm.php, line 100

Class

HttpFetcherFeedForm
Provides a form on the feed edit page for the HttpFetcher.

Namespace

Drupal\feeds\Feeds\Fetcher\Form

Code

public function submitConfigurationForm(array &$form, FormStateInterface $form_state, FeedInterface $feed = NULL) {
  $feed
    ->setSource($form_state
    ->getValue('source'));
}