December 2016
Beginner to intermediate
1005 pages
21h 54m
English
A form's purpose is to collect data and do something with the data that was submitted. All forms need to implement the \Drupal\Core\Form\FormInterface. The interface defines a submit method. Once the Form API has invoked the class's validation method, the submit method can be run.
This recipe will be based on the custom module and form created in the Creating a form recipe of this chapter. We will convert the form to \Drupal\Core\FormConfigBaseForm, allowing easy storage of the field element.
In this recipe, we will be using the module and custom form created in the first Creating a form recipe.
config directory, and then create a directory inside it named ...Read now
Unlock full access