You are here

public function WrapperTarget::submitConfigurationForm in Feeds Paragraphs 8

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 TargetBase::submitConfigurationForm

File

src/Feeds/Target/WrapperTarget.php, line 269

Class

WrapperTarget
Defines a wrapper target around a paragraph bundle's target field.

Namespace

Drupal\feeds_para_mapper\Feeds\Target

Code

public function submitConfigurationForm(array &$form, FormStateInterface $form_state) {
  $delta = $form_state
    ->getTriggeringElement()['#delta'];
  $configuration = $form_state
    ->getValue([
    'mappings',
    $delta,
    'settings',
  ]);
  $this->targetInstance
    ->submitConfigurationForm($form, $form_state);
  $this
    ->setConfiguration($configuration);
}