function FormStateInterface::getUserInput
Same name in other branches
- 9 core/lib/Drupal/Core/Form/FormStateInterface.php \Drupal\Core\Form\FormStateInterface::getUserInput()
- 8.9.x core/lib/Drupal/Core/Form/FormStateInterface.php \Drupal\Core\Form\FormStateInterface::getUserInput()
- 11.x core/lib/Drupal/Core/Form/FormStateInterface.php \Drupal\Core\Form\FormStateInterface::getUserInput()
Returns the form values as they were submitted by the user.
These are raw and non validated, so should not be used without a thorough understanding of security implications. In almost all cases, code should use self::getValues() and self::getValue() exclusively.
Return value
array An associative array of values submitted to the form.
2 methods override FormStateInterface::getUserInput()
- FormState::getUserInput in core/
lib/ Drupal/ Core/ Form/ FormState.php - Returns the form values as they were submitted by the user.
- FormStateDecoratorBase::getUserInput in core/
lib/ Drupal/ Core/ Form/ FormStateDecoratorBase.php - Returns the form values as they were submitted by the user.
File
-
core/
lib/ Drupal/ Core/ Form/ FormStateInterface.php, line 311
Class
- FormStateInterface
- Provides an interface for an object containing the current state of a form.
Namespace
Drupal\Core\FormCode
public function &getUserInput();
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.