You are here

public function MultipleEntityFormState::setFormEntityManager in Flexiform 8

Parameters

\Drupal\flexiform\FormEntity\FlexiformFormEntityManager $form_entity_manager:

Overrides MultipleEntityFormStateInterface::setFormEntityManager

File

src/MultipleEntityFormState.php, line 58

Class

MultipleEntityFormState

Namespace

Drupal\flexiform

Code

public function setFormEntityManager(FlexiformFormEntityManager $form_entity_manager) {
  $managers_property = array_merge([
    'entity_manager',
  ], $this->parents, [
    '#manager',
  ]);
  $this->decoratedFormState
    ->set($managers_property, $form_entity_manager);
  return $this;
}