function SubformState::__construct
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Form/SubformState.php \Drupal\Core\Form\SubformState::__construct()
- 10 core/lib/Drupal/Core/Form/SubformState.php \Drupal\Core\Form\SubformState::__construct()
- 9 core/lib/Drupal/Core/Form/SubformState.php \Drupal\Core\Form\SubformState::__construct()
- 8.9.x core/lib/Drupal/Core/Form/SubformState.php \Drupal\Core\Form\SubformState::__construct()
Constructs a new instance.
Parameters
mixed[] $subform: The subform for which to create a form state.
mixed[] $parentForm: The subform's parent form.
\Drupal\Core\Form\FormStateInterface $parent_form_state: The parent form state.
\Drupal\Core\Form\FormInterface|null $subformFormObject: The subform form object when it's not the same as the parent form.
File
-
core/
lib/ Drupal/ Core/ Form/ SubformState.php, line 26
Class
- SubformState
- Stores information about the state of a subform.
Namespace
Drupal\Core\FormCode
protected function __construct(protected array &$subform, protected array &$parentForm, FormStateInterface $parent_form_state, protected readonly ?FormInterface $subformFormObject = NULL) {
$this->decoratedFormState = $parent_form_state;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.