Model
IsCaptchaEnabled
Magento\ReCaptchaUi\Model\IsCaptchaEnabled
What it does
This model determines whether reCAPTCHA is enabled for a specific form or feature in Magento 2.
Developers use this class to check if reCAPTCHA validation should be applied to areas like login, registration, or checkout forms by verifying both that a captcha type is configured and that the required API keys (public site key and private key) are present in the system configuration.
Public Methods
- isCaptchaEnabledFor()