FormInterface::remove()

FormInterface remove(string $name) Removes a child from the form. Parameters string $name The name of the child to remove Return Value FormInterface The form instance Exceptions AlreadySubmittedException If the form has already been submitted.

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.

FormInterface::submit()

FormInterface submit(null|string|array $submittedData, bool $clearMissing = true) Submits data to the form, transforms and validates it. Parameters null|string|array $submittedData The submitted data bool $clearMissing Whether to set fields to NULL when they are missing in the submitted data. Return Value FormInterface The form instance Exceptions AlreadySubmittedException If the form has already been submitted.

FormInterface::setData()

FormInterface setData(mixed $modelData) Updates the form with default data. Parameters mixed $modelData The data formatted as expected for the underlying object Return Value FormInterface The form instance Exceptions 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}.

FormInterface::isValid()

bool isValid() Returns whether the form and all children are valid. If the form is not submitted, this method always returns false. Return Value bool

FormInterface::isRoot()

bool isRoot() Returns whether the field is the root of the form tree. Return Value bool

FormInterface::isSubmitted()

bool isSubmitted() Returns whether the form is submitted. Return Value bool true if the form is submitted, false otherwise

FormInterface::isSynchronized()

bool isSynchronized() Returns whether the data in the different formats is synchronized. If the data is not synchronized, you can get the transformation failure by calling {@link getTransformationFailure()}. Return Value bool

FormInterface::initialize()

FormInterface initialize() Initializes the form tree. Should be called on the root form after constructing the tree. Return Value FormInterface The form instance

FormInterface::isDisabled()

bool isDisabled() Returns whether this form is disabled. The content of a disabled form is displayed, but not allowed to be modified. The validation of modified disabled forms should fail. Forms whose parents are disabled are considered disabled regardless of their own state. Return Value bool