FormFactoryInterface::createNamed()

FormInterface createNamed(string|int $name, string $type = 'Symfony\\Component\\Form\\Extension\\Core\\Type\\FormType', mixed $data = null, array $options = array())

Returns a form.

Parameters

string|int $name The name of the form
string $type The type of the form
mixed $data The initial data
array $options The options

Return Value

FormInterface The form

Exceptions

InvalidOptionsException if any given option is not applicable to the given type

See also

createNamedBuilder()
doc_Symfony
2016-10-28 06:18:46
Comments
Leave a Comment

Please login to continue.