FormInterface::setParent()

FormInterface setParent(FormInterface $parent = null)

Sets the parent form.

Parameters

FormInterface $parent The parent form or null if it's the root

Return Value

FormInterface The form instance

Exceptions

AlreadySubmittedException If the form has already been submitted.
LogicException When trying to set a parent for a form with an empty name.
doc_Symfony
2016-10-28 06:19:02
Comments
Leave a Comment

Please login to continue.