function SubformState::getFormObject

Same name in other branches
  1. 11.x core/lib/Drupal/Core/Form/SubformState.php \Drupal\Core\Form\SubformState::getFormObject()

Overrides FormStateDecoratorBase::getFormObject

File

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

Class

SubformState
Stores information about the state of a subform.

Namespace

Drupal\Core\Form

Code

public function getFormObject() {
    if ($this->subformFormObject) {
        return $this->subformFormObject;
    }
    return parent::getFormObject();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.