Sruj Sruj - 1 year ago 108
PHP Question

Symfony Form Component. What are all available options as 3rd argument of FormBuilderInterface::add() method

How do I know what all options are available as 3rd argument of

in Symfony Form Component.

Answer Source

It depends on what type of form field you're adding. Full list of default fields is here and then all available options are listed in the documentation for each form field.

For example TextType has just a few basic ones

On the other hand EntityType has it's own extra options and then inherits all options from its parents

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download