function AjaxFormsTestSimpleForm::textFieldCallback
Same name and namespace in other branches
- 10 core/modules/system/tests/modules/ajax_forms_test/src/Form/AjaxFormsTestSimpleForm.php \Drupal\ajax_forms_test\Form\AjaxFormsTestSimpleForm::textfieldCallback()
- main core/modules/system/tests/modules/ajax_forms_test/src/Form/AjaxFormsTestSimpleForm.php \Drupal\ajax_forms_test\Form\AjaxFormsTestSimpleForm::textFieldCallback()
AJAX callback for textfield.
Parameters
array $form: The form array.
Return value
array The form element to return via AJAX.
File
-
core/
modules/ system/ tests/ modules/ ajax_forms_test/ src/ Form/ AjaxFormsTestSimpleForm.php, line 170
Class
- AjaxFormsTestSimpleForm
- Form builder: Builds a form that triggers a simple AJAX callback.
Namespace
Drupal\ajax_forms_test\FormCode
public static function textFieldCallback(array $form) : array {
return $form['textfield_focus_tests'];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.