Log in
Model

Mode

Magento\Captcha\Model\Config\Mode

What it does

This class provides configuration options for CAPTCHA display modes in Magento 2.

It returns an array of options that determine when CAPTCHA should be shown: either always on forms or only after a specified number of failed login attempts.

Developers use this class to populate the CAPTCHA mode dropdown in the admin configuration settings.

Public Methods

  • toOptionArray()