function FormTestMachineNameValidationForm::buildAjaxSnackConfigureFormValidate
Validate callback that forces a form rebuild.
File
-
core/
modules/ system/ tests/ modules/ form_test/ src/ Form/ FormTestMachineNameValidationForm.php, line 102
Class
- FormTestMachineNameValidationForm
- Form to test whether machine name validation works with ajax requests.
Namespace
Drupal\form_test\FormCode
public function buildAjaxSnackConfigureFormValidate(array $form, FormStateInterface $form_state) {
$form_state->set('id', $form_state->getValue('id'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.