You are here

public function FormState::getFormObject in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Form/FormState.php \Drupal\Core\Form\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 1229
Contains \Drupal\Core\Form\FormState.

Class

FormState
Stores information about the state of a form.

Namespace

Drupal\Core\Form

Code

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