FormErrorIterator
getErrors(bool $deep = false, bool $flatten = true)
Returns the errors of this form.
Parameters bool $deep Whether to include errors of child forms as well bool $flatten Whether to flatten the list of errors in case $deep is set to true Return Value FormErrorIterator An iterator over the {@link FormError} instances that where added to this form