public function ParserWithMappingForm::mappingFormSubmit in Feeds 8.3
Submit handler for the mapping form.
Parameters
array $form: The mapping form definition.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the mapping form.
Overrides MappingPluginFormInterface::mappingFormSubmit
File
- tests/
modules/ feeds_test_plugin/ src/ Feeds/ Parser/ ParserWithMappingForm.php, line 73
Class
- ParserWithMappingForm
- Dummy parser to test integration with the Feeds mapping form.
Namespace
Drupal\feeds_test_plugin\Feeds\ParserCode
public function mappingFormSubmit(array &$form, FormStateInterface $form_state) {
$this
->setConfiguration([
'dummy' => $form_state
->getValue('dummy'),
]);
}