public static function FormTestFormStateValuesCleanForm::cleanValue in Zircon Profile 8.0
Same name and namespace in other branches
- 8 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 55 - Contains \Drupal\form_test\Form\FormTestFormStateValuesCleanForm.
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');
}