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.