You are here

public function MultipleEntityFormState::__construct in Flexiform 8

MultipleEntityFormState constructor.

Parameters

array $subform:

\Drupal\Core\Form\FormStateInterface $form_state:

File

src/MultipleEntityFormState.php, line 39

Class

MultipleEntityFormState

Namespace

Drupal\flexiform

Code

public function __construct(array &$subform, FormStateInterface $form_state) {
  $this->decoratedFormState = $form_state;
  $this->subform = $subform;
  $this->parents = isset($subform['#parents']) ? $subform['#parents'] : [];
}