src/Charcoal/Admin/AdminTemplate.php
public function recaptchaInvisible()
    {
        $recaptcha = $this->apiConfig('google.recaptcha');

        $hasInvisible = isset($recaptcha['invisible']);
        if ($hasInvisible && $recaptcha['invisible'] === true) {
            return true;
        }

        $hasSize = isset($recaptcha['size']);
        if ($hasSize && $recaptcha['size'] === 'invisible') {
            return true;
        }

        if (!$hasInvisible && !$hasSize) {
            return true;
        }

        return false;
    }
public function recaptchaInvisible()
    {
        $recaptcha = $this->apiConfig('google.recaptcha');

        $hasInvisible = isset($recaptcha['invisible']);
        if ($hasInvisible && $recaptcha['invisible'] === true) {
            return true;
        }

        $hasSize = isset($recaptcha['size']);
        if ($hasSize && $recaptcha['size'] === 'invisible') {
            return true;
        }

        if (!$hasInvisible && !$hasSize) {
            return true;
        }

        return false;
    }
public function recaptchaInvisible ( ) { $ recaptcha = $ this -> apiConfig ( 'google.recaptcha' ) ; $ hasInvisible = isset ( $ recaptcha [ 'invisible' ] ) ; if ( $ hasInvisible && $ recaptcha [ 'invisible' ] === true ) { return true ; } $ hasSize = isset ( $ recaptcha [ 'size' ] ) ; if ( $ hasSize && $ recaptcha [ 'size' ] === 'invisible' ) { return true ; } if ( ! $ hasInvisible && ! $ hasSize ) { return true ; } return false ; }
Determine if the CAPTCHA test is invisible.

Note: Charcoal's implementation of Google reCAPTCHA defaults to "invisible".

@return boolean
Determine if the CAPTCHA test is invisible .