You are here

protected function SubformState::__construct in Markdown 8.2

Same name in this branch
  1. 8.2 src/Form/SubformState.php \Drupal\markdown\Form\SubformState::__construct()
  2. 8.2 src/BcSupport/SubformState.php \Drupal\markdown\BcSupport\SubformState::__construct()

Constructs a new instance.

Parameters

mixed[] $subform: The subform for which to create a form state.

mixed[] $parent_form: The subform's parent form.

\Drupal\Core\Form\FormStateInterface $parent_form_state: The parent form state.

1 method overrides SubformState::__construct()
SubformState::__construct in src/Form/SubformState.php
{@inheritdoc

File

src/BcSupport/SubformState.php, line 44

Class

SubformState
Stores information about the state of a subform.

Namespace

Drupal\markdown\BcSupport

Code

protected function __construct(array &$subform, array &$parent_form, FormStateInterface $parent_form_state) {
  $this->decoratedFormState = $parent_form_state;
  $this->parentForm = $parent_form;
  $this->subform = $subform;
}