Garden\Validation::fieldValid PHP Method

fieldValid() public method

Check whether or not a particular field is has errors.
public fieldValid ( string $field ) : boolean
$field string The name of the field to check for validity.
return boolean Returns true if the field has no errors, false otherwise.
    public function fieldValid($field)
    {
        $result = !isset($this->errors[$field]) || count($this->errors[$field]) === 0;
        return $result;
    }