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::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::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::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::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::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::isSubmitted()

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

FormInterface::isRoot()

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

FormInterface::isRequired()

bool isRequired() Returns whether the form is required to be filled out. If the form has a parent and the parent is not required, this method will always return false. Otherwise the value set with setRequired() is returned. Return Value bool

FormInterface::isEmpty()

bool isEmpty() Returns whether the form is empty. Return Value bool