Interface
CaptchaInterface
Magento\Captcha\Model\CaptchaInterface
What it does
This interface defines the contract for CAPTCHA implementations in Magento 2.
Developers use this interface to create custom CAPTCHA providers or interact with the CAPTCHA system to generate challenges, validate user responses, and retrieve the associated block name for rendering.
It's primarily used in forms requiring bot protection like login, registration, or contact forms.
Public Methods
- generate()
- isCorrect()
- getBlockName()