Symfony\Bundle\FrameworkBundle\Controller\Controller::createForm
Creates and returns a Form instance from the type of the form.
Signature
public function createForm(string|FormTypeInterface
$type,
[mixed
$data = null,
array
$options] )
Parameters
$type
— object- The built type of the form
$data
— mixed- The initial data for the form
$options
— array- Options for the form
Returns
- Form