function FormTestFormStateValuesCleanForm::cleanValue
Same name in other branches
- 9 core/modules/system/tests/modules/form_test/src/Form/FormTestFormStateValuesCleanForm.php \Drupal\form_test\Form\FormTestFormStateValuesCleanForm::cleanValue()
- 8.9.x core/modules/system/tests/modules/form_test/src/Form/FormTestFormStateValuesCleanForm.php \Drupal\form_test\Form\FormTestFormStateValuesCleanForm::cleanValue()
- 11.x core/modules/system/tests/modules/form_test/src/Form/FormTestFormStateValuesCleanForm.php \Drupal\form_test\Form\FormTestFormStateValuesCleanForm::cleanValue()
Helper function to clean a value on an element.
File
-
core/
modules/ system/ tests/ modules/ form_test/ src/ Form/ FormTestFormStateValuesCleanForm.php, line 52
Class
- FormTestFormStateValuesCleanForm
- Form builder for \Drupal\Core\Form\FormState::cleanValues() test.
Namespace
Drupal\form_test\FormCode
public static function cleanValue(&$element, FormStateInterface $form_state, &$complete_form) {
$form_state->addCleanValueKey('wine');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.