public function MediaTarget::submitConfigurationForm in Media Feeds 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/ MediaTarget.php, line 395
Class
- MediaTarget
- Defines a wrapper target around a paragraph bundle's target field.
Namespace
Drupal\media_feeds\Feeds\TargetCode
public function submitConfigurationForm(array &$form, FormStateInterface $form_state) {
if ($this->isMedia) {
$delta = $form_state
->getTriggeringElement()['#delta'];
$configuration = $form_state
->getValue([
'mappings',
$delta,
'settings',
]);
$this->targetInstance
->submitConfigurationForm($form, $form_state);
$this
->setConfiguration($configuration);
}
parent::submitConfigurationForm($form, $form_state);
}