FormFactoryInterface::createNamedBuilder()

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

Returns a form builder.

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

FormBuilderInterface The form builder

Exceptions

InvalidOptionsException if any given option is not applicable to the given type
doc_Symfony
2016-10-28 06:18:46
Comments
Leave a Comment

Please login to continue.