Log in
Interface

ValidatorInterface

Magento\ReCaptchaValidationApi\Api\ValidatorInterface

What it does

This interface defines a contract for validating Google reCAPTCHA responses in Magento 2.

Developers implement this interface to create validators that verify whether a reCAPTCHA challenge was successfully completed by a user, using the reCAPTCHA response token and validation configuration.

It's used throughout Magento to protect forms from bot submissions and spam.

Public Methods

  • isValid()