Log in
Model

ButtonLock

Magento\ReCaptchaUi\Model\ButtonLock

What it does

This class manages button state for forms protected by reCAPTCHA.

It disables form submit buttons when reCAPTCHA is enabled for a specific form area, preventing submission until the user completes the reCAPTCHA challenge.

Developers use this to ensure users cannot bypass reCAPTCHA validation by clicking submit before verification.

Public Methods

  • getCode()
  • isDisabled()