You are here

public function SubformState::getCompleteFormState in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Form/SubformState.php \Drupal\Core\Form\SubformState::getCompleteFormState()

Gets the complete form state.

Return value

\Drupal\Core\Form\FormStateInterface

Overrides SubformStateInterface::getCompleteFormState

File

core/lib/Drupal/Core/Form/SubformState.php, line 115

Class

SubformState
Stores information about the state of a subform.

Namespace

Drupal\Core\Form

Code

public function getCompleteFormState() {
  return $this->decoratedFormState instanceof SubformStateInterface ? $this->decoratedFormState
    ->getCompleteFormState() : $this->decoratedFormState;
}