8.2.x FormStateInterface.php public &FormStateInterface::getUserInput()
8.0.x FormStateInterface.php public &FormStateInterface::getUserInput()
8.1.x FormStateInterface.php public &FormStateInterface::getUserInput()
8.3.x FormStateInterface.php public &FormStateInterface::getUserInput()

Returns the form values as they were submitted by the user.

These are raw and unvalidated, 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.

1 method overrides FormStateInterface::getUserInput()
FormState::getUserInput in core/lib/Drupal/Core/Form/FormState.php

File

core/lib/Drupal/Core/Form/FormStateInterface.php, line 266

Class

FormStateInterface
Provides an interface for an object containing the current state of a form.

Namespace

Drupal\Core\Form

Code

public function &getUserInput();