Symfony\Component\Form\FormBuilderInterface::add
Adds a new field to this group. A field must have a unique name within the group. Otherwise the existing field is overwritten.
If you add a nested group, this group should also be represented in the object hierarchy.
Signature
public function add(string|integer|FormBuilderInterface
$child,
[string|FormTypeInterface
$type = null,
array
$options] )
Parameters
$child
— object
$type
— object
$options
— array
Returns
- FormBuilderInterface
- The builder object.