FormFactoryInterface::createBuilder()

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

Returns a form builder.

Parameters

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:45
Comments
Leave a Comment

Please login to continue.