Kernel::System::DataValidation::Validator::Required

NAME

Kernel::System::DataValidation::Validator::Required – Validator that checks if a value is defined.

PUBLIC INTERFACE

Provides a Check method, that will be called by the Kernel::System::DataValidation backend.

Check()

Checks if the given value is defined and has a length.

    my $True = $Validator->Check(
        Value => 'MyValue',
    );

    my $False = $Validator->Check(
        Value => '',
    );
Scroll to Top