Prado\Web\UI\WebControls\TReCaptcha2Validator::getCaptchaControl PHP Method

getCaptchaControl() protected method

protected getCaptchaControl ( )
    protected function getCaptchaControl()
    {
        $control = $this->getValidationTarget();
        if (!$control) {
            throw new Exception('No target control specified for TReCaptcha2Validator');
        }
        if (!$control instanceof TReCaptcha2) {
            throw new Exception('TReCaptcha2Validator only works with TReCaptcha2 controls');
        }
        return $control;
    }