Symfony\Component\Form\FormFactoryInterface::create
Returns a form.
Signature
public function create([string
$type = 'form',
[mixed
$data = null,
array
$options]] )
Parameters
$type
— string- The type of the form
$data
— mixed- The initial data
$options
— array- The options
Returns
- FormInterface
- The form named after the type
Errors/Exceptions
-
InvalidOptionsException
- if any given option is not applicable to the given type