public static function is_age_digital_consent_verification_enabled() {
        global $PAGE;

        $context = context_system::instance();
        $PAGE->set_context($context);

        $status = false;
        // Check if verification is enabled.
        if (\core_auth\digital_consent::is_age_digital_consent_verification_enabled()) {
            $status = true;
        }

        return array(
            'status' => $status
        );
    }
public static function is_age_digital_consent_verification_enabled() {
        global $PAGE;

        $context = context_system::instance();
        $PAGE->set_context($context);

        $status = false;
        // Check if verification is enabled.
        if (\core_auth\digital_consent::is_age_digital_consent_verification_enabled()) {
            $status = true;
        }

        return array(
            'status' => $status
        );
    }
public static function is_age_digital_consent_verification_enabled ( ) { global $ PAGE ; $ context = context_system :: instance ( ) ; $ PAGE -> set_context ( $ context ) ; $ status = false ; // Check if verification is enabled. if ( \ core_auth \ digital_consent :: is_age_digital_consent_verification_enabled ( ) ) { $ status = true ; } return array ( 'status' => $ status ) ; }
Checks if age digital consent verification is enabled.

@return array status (true if digital consent verification is enabled, false otherwise.)
@since Moodle 3.3
@throws moodle_exception
Checks if age digital consent verification is enabled .