FormState::$cleanValueKeys

Same name in other branches
  1. 9 core/lib/Drupal/Core/Form/FormState.php \Drupal\Core\Form\FormState::cleanValueKeys
  2. 10 core/lib/Drupal/Core/Form/FormState.php \Drupal\Core\Form\FormState::cleanValueKeys
  3. 11.x core/lib/Drupal/Core/Form/FormState.php \Drupal\Core\Form\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 232

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',
];

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.