function FormState::getFormObject

Same name in other branches
  1. 9 core/lib/Drupal/Core/Form/FormState.php \Drupal\Core\Form\FormState::getFormObject()
  2. 8.9.x core/lib/Drupal/Core/Form/FormState.php \Drupal\Core\Form\FormState::getFormObject()
  3. 10 core/lib/Drupal/Core/Form/FormState.php \Drupal\Core\Form\FormState::getFormObject()

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 1227

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.