function FormState::getFormObject

Returns the form object that is responsible for building this form.

Return value

\Drupal\Core\Form\FormInterface The form object.

Overrides FormStateInterface::getFormObject

1 call to FormState::getFormObject()
FormState::prepareCallback in core/lib/Drupal/Core/Form/FormState.php
Converts support notations for a form callback to a valid callable.

File

core/lib/Drupal/Core/Form/FormState.php, line 1190

Class

FormState
Stores information about the state of a form.

Namespace

Drupal\Core\Form

Code

public function getFormObject() {
  return $this->getBuildInfo()['callback_object'];
}

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