public function FormState::getFormObject in Drupal 8
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Form/FormState.php \Drupal\Core\Form\FormState::getFormObject()
- 10 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 1165
Class
- FormState
- Stores information about the state of a form.
Namespace
Drupal\Core\FormCode
public function getFormObject() {
return $this
->getBuildInfo()['callback_object'];
}