FormInterface setData(mixed $modelData)
Updates the form with default data.
FormInterface setData(mixed $modelData)
Updates the form with default data.
mixed | $modelData | The data formatted as expected for the underlying object |
FormInterface | The form instance |
AlreadySubmittedException | If the form has already been submitted. |
LogicException | If listeners try to call setData in a cycle. Or if the view data does not match the expected type according to {@link FormConfigInterface::getDataClass}. |
Designed by : w10schools
service@w10schools.com
Please login to continue.