function FormStateValuesTrait::unsetValue

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Form/FormStateValuesTrait.php \Drupal\Core\Form\FormStateValuesTrait::unsetValue()
  2. 10 core/lib/Drupal/Core/Form/FormStateValuesTrait.php \Drupal\Core\Form\FormStateValuesTrait::unsetValue()
  3. 11.x core/lib/Drupal/Core/Form/FormStateValuesTrait.php \Drupal\Core\Form\FormStateValuesTrait::unsetValue()

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

1 call to FormStateValuesTrait::unsetValue()
FormState::cleanValues in core/lib/Drupal/Core/Form/FormState.php
Removes internal Form API elements and buttons from submitted form values.

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;
}

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