Symfony\Component\Form\FormFactoryInterface::createBuilder
Returns a form builder.
Signature
public function createBuilder([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
- FormBuilderInterface
- The form builder
Errors/Exceptions
-
InvalidOptionsException
- if any given option is not applicable to the given type