You are here

public function FormStateValuesTrait::unsetValue in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Form/FormStateValuesTrait.php \Drupal\Core\Form\FormStateValuesTrait::unsetValue()
  2. 9 core/lib/Drupal/Core/Form/FormStateValuesTrait.php \Drupal\Core\Form\FormStateValuesTrait::unsetValue()

Implements \Drupal\Core\Form\FormStateInterface::unsetValue()

File

core/lib/Drupal/Core/Form/FormStateValuesTrait.php, line 53

Class

FormStateValuesTrait
Provides methods to manage form state values.

Namespace

Drupal\Core\Form

Code

public function unsetValue($key) {
  NestedArray::unsetValue($this
    ->getValues(), (array) $key);
  return $this;
}