public function MappingForm::submitForm in Feeds 8.3
Form submission handler.
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Overrides FormInterface::submitForm
File
- src/
Form/ MappingForm.php, line 629
Class
- MappingForm
- Provides a form for mapping settings.
Namespace
Drupal\feeds\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$this
->processFormState($form, $form_state);
// Allow plugins to hook into the mapping form.
foreach ($this->feedType
->getPlugins() as $plugin) {
if ($plugin instanceof MappingPluginFormInterface) {
$plugin
->mappingFormSubmit($form, $form_state);
}
}
$this->feedType
->save();
}