public static SubformState::createForSubform(array &$subform, array &$parent_form, FormStateInterface $parent_form_state)
Creates a new instance for a subform.
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.
Return value
static
File
- core/lib/Drupal/Core/Form/SubformState.php, line 56
Class
- SubformState
- Stores information about the state of a subform.
Namespace
Drupal\Core\Form
Code
public static function createForSubform(array &$subform, array &$parent_form, FormStateInterface $parent_form_state) { return new static($subform, $parent_form, $parent_form_state); }
Please login to continue.