You are here

public static function SubformState::createForSubform in Markdown 8.2

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

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

1 call to SubformState::createForSubform()
SubformState::createForSubform in src/Form/SubformState.php
Creates a new instance for a subform.
1 method overrides SubformState::createForSubform()
SubformState::createForSubform in src/Form/SubformState.php
Creates a new instance for a subform.

File

src/BcSupport/SubformState.php, line 62

Class

SubformState
Stores information about the state of a subform.

Namespace

Drupal\markdown\BcSupport

Code

public static function createForSubform(array &$subform, array &$parent_form, FormStateInterface $parent_form_state) {
  return new static($subform, $parent_form, $parent_form_state);
}