You are here

public function FlexiformEntityFormDisplay::saveFormEntities in Flexiform 8

Save the extra entities added to the form.

File

src/FlexiformEntityFormDisplay.php, line 383

Class

FlexiformEntityFormDisplay
Defines a class to extend EntityFormDisplays.

Namespace

Drupal\flexiform

Code

public function saveFormEntities(array $form, FormStateInterface $form_state) {
  $form_state = $this
    ->decorateFormState($form, $form_state);
  $form_state
    ->getFormEntityManager()
    ->saveFormEntities();
}