function form_test_user_register_form_rebuild
Same name in other branches
- 7.x modules/simpletest/tests/form_test.module \form_test_user_register_form_rebuild()
- 9 core/modules/system/tests/modules/form_test/form_test.module \form_test_user_register_form_rebuild()
- 8.9.x core/modules/system/tests/modules/form_test/form_test.module \form_test_user_register_form_rebuild()
- 10 core/modules/system/tests/modules/form_test/form_test.module \form_test_user_register_form_rebuild()
Submit callback that just lets the form rebuild.
1 string reference to 'form_test_user_register_form_rebuild'
- form_test_form_user_register_form_alter in core/
modules/ system/ tests/ modules/ form_test/ form_test.module - Implements hook_form_FORM_ID_alter() for the registration form.
File
-
core/
modules/ system/ tests/ modules/ form_test/ form_test.module, line 92
Code
function form_test_user_register_form_rebuild($form, FormStateInterface $form_state) {
\Drupal::messenger()->addStatus('Form rebuilt.');
$form_state->setRebuild();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.