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