FormBuilderInterface::add()

FormBuilderInterface add(string|int|FormBuilderInterface $child, string|null $type = null, array $options = array())

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.

Parameters

string|int|FormBuilderInterface $child
string|null $type
array $options

Return Value

FormBuilderInterface The builder object
doc_Symfony
2016-10-28 06:17:44
Comments
Leave a Comment

Please login to continue.