validator abstract method

List<FormError> validator()

A function that validates your form. Returns a list of form errors, or an empty list if there are no errors - in which case isValid will be true.

Implementation

List<FormError> validator();