Example: Forms API

Same name in other branches
  1. 4.0.x modules/form_api_example/form_api_example.module \form_api_example

Examples using Forms API.

Creating A Drupal Form requires:

In addition to the simple example described above this module provides examples that demonstrate:

End of "defgroup field_example".

Parent topics

File

modules/form_api_example/form_api_example.module, line 8

Classes

Title Sort descending File name Summary
AjaxColorFormTest modules/form_api_example/tests/src/FunctionalJavascript/AjaxColorFormTest.php @group form_api_example
FapiExampleTest modules/form_api_example/tests/src/Functional/FapiExampleTest.php Ensure that the form_api_example forms work properly.
ModalFormTest modules/form_api_example/tests/src/FunctionalJavascript/ModalFormTest.php @group form_api_example
StateDemoTest modules/form_api_example/tests/src/FunctionalJavascript/StateDemoTest.php @group form_api_example