drupal_get_form in Drupal 8
In Drupal 8 you use the FormBuilder service to retrieve forms.
1
|
|
The argument passed to the getForm() method is the name of the class that defines your form and is an implementation of \Drupal\Core\Form\FormBuilderInterface. If you need to pass any additional parameters to the form, pass them on after the class name.
1
|
|