src/Form/Form.php
protected function addCaptchaElement()
    {
        if (!$this->getCaptchaOptions() || $this->has('captcha')) {
            return;
        }

        $spec = array_replace_recursive($this->captchaElementSpec, [
                'name' => $this->getCaptchaElementName(),
                'options' => [
                    'captcha' => $this->getCaptchaOptions(),
                ],
            ]);

        $this->add($spec, ['priority' => -970]);
    }
protected function addCaptchaElement()
    {
        if (!$this->getCaptchaOptions() || $this->has('captcha')) {
            return;
        }

        $spec = array_replace_recursive($this->captchaElementSpec, [
                'name' => $this->getCaptchaElementName(),
                'options' => [
                    'captcha' => $this->getCaptchaOptions(),
                ],
            ]);

        $this->add($spec, ['priority' => -970]);
    }
protected function addCaptchaElement ( ) { if ( ! $ this -> getCaptchaOptions ( ) || $ this -> has ( 'captcha' ) ) { return ; } $ spec = array_replace_recursive ( $ this -> captchaElementSpec , [ 'name' => $ this -> getCaptchaElementName ( ) , 'options' => [ 'captcha' => $ this -> getCaptchaOptions ( ) , ] , ] ) ; $ this -> add ( $ spec , [ 'priority' => - 970 ] ) ; }
Setup CAPTCHA protection
Setup CAPTCHA protection