public function FlexiformEntityFormDisplay::formSubmitComponents in Flexiform 8
File
- src/
FlexiformEntityFormDisplay.php, line 369
Class
- FlexiformEntityFormDisplay
- Defines a class to extend EntityFormDisplays.
Namespace
Drupal\flexiformCode
public function formSubmitComponents(array $form, FormStateInterface $form_state) {
$form_state = $this
->decorateFormState($form, $form_state);
foreach ($this
->getComponents() as $name => $options) {
if ($component = $this
->getComponentPlugin($name, $options, $form_state
->getFormEntityManager())) {
if ($component instanceof FormComponentWithSubmitInterface) {
$component
->formSubmit($form[$name], $form_state);
}
}
}
}