src/Easy/Element/Element.php
public function validate()
    {
        $ret = true;
        if ($this->validator)
            $ret = Expression::evaluateExpression($this->validator, $this->getFormObj());
        return $ret;
    }
public function validate()
    {
        $ret = true;
        if ($this->validator)
            $ret = Expression::evaluateExpression($this->validator, $this->getFormObj());
        return $ret;
    }
Validate element

@return boolean