public function TargetBase::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 ConfigurablePluginBase::submitConfigurationForm
File
- src/
Plugin/ Type/ Target/ TargetBase.php, line 80
Class
- TargetBase
- A base class for Feed targets.
Namespace
Drupal\feeds\Plugin\Type\TargetCode
public function submitConfigurationForm(array &$form, FormStateInterface $form_state) {
$delta = $form_state
->getTriggeringElement()['#delta'];
$configuration = $form_state
->getValue([
'mappings',
$delta,
'settings',
]);
$this
->setConfiguration($configuration);
}