W3cubDocs

/Drupal 8

protected property FormState::$cleanValueKeys

An associative array of form value keys to be removed by cleanValues().

Any values that are temporary but must still be displayed as values in the rendered form should be added to this array using addCleanValueKey(). Initialized with internal Form API values.

This property is uncacheable.

Type: array

File

core/lib/Drupal/Core/Form/FormState.php, line 230

Class

FormState
Stores information about the state of a form.

Namespace

Drupal\Core\Form

Code

protected $cleanValueKeys = [
  'form_id',
  'form_token',
  'form_build_id',
  'op',
];

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Form!FormState.php/property/FormState::cleanValueKeys/8.1.x