Skip to content

[NFR]: Add fails() method to Validation class #16798

@raicabogdan

Description

@raicabogdan

Is your feature request related to a problem? Please describe.
Avoid counting messages in local code I guess? not really a particular problem

Describe the solution you'd like
Check if the messages is not null / not empty to verify if validation fails.

Describe alternatives you've considered
The alternative is to use the form->isValid() which is no longer something needed.

Additional context
I've been using lately the Validation class separately from the Form class, this is for when I don't do rendering on the client side using the form builder, rather using vue, react or similar. As such I don't usually require a form object in such cases.

Metadata

Metadata

Assignees

No one assigned

    Labels

    5.0The issues we want to solve in the 5.0 releasenew feature requestPlanned Feature or New Feature Request
    No fields configured for Feature.

    Projects

    Status
    Released

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions