FormInterface add(FormInterface|string|int $child, string|null $type = null, array $options = array())
Adds or replaces a child to the form.
FormInterface add(FormInterface|string|int $child, string|null $type = null, array $options = array())
Adds or replaces a child to the form.
FormInterface|string|int | $child | The FormInterface instance or the name of the child |
string|null | $type | The child's type, if a name was passed |
array | $options | The child's options, if a name was passed |
FormInterface | The form instance |
AlreadySubmittedException | If the form has already been submitted. |
LogicException | When trying to add a child to a non-compound form. |
UnexpectedTypeException | If $child or $type has an unexpected type. |
Designed by : w10schools
service@w10schools.com
Please login to continue.