public function ParserWithMappingForm::mappingFormAlter in Feeds 8.3
Alter mapping form.
Parameters
array $form: The mapping form definition.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the mapping form.
Overrides MappingPluginFormInterface::mappingFormAlter
File
- tests/
modules/ feeds_test_plugin/ src/ Feeds/ Parser/ ParserWithMappingForm.php, line 51
Class
- ParserWithMappingForm
- Dummy parser to test integration with the Feeds mapping form.
Namespace
Drupal\feeds_test_plugin\Feeds\ParserCode
public function mappingFormAlter(array &$form, FormStateInterface $form_state) {
$form['dummy'] = [
'#type' => 'textfield',
'#title' => $this
->t('Dummy'),
'#default_value' => $this->configuration['dummy'],
'#required' => TRUE,
'#weight' => -50,
];
}