eZ\Publish\Core\FieldType\Validator::validate PHP Method

validate() abstract public method

Will return true when all constraints are matched. If one or more constraints fail, the method will return false. When a check against a constraint has failed, an entry will be added to the $errors array.
abstract public validate ( Value $value ) : boolean
$value Value
return boolean
    public abstract function validate(Value $value);