Log in
Model

EnabledProvider

Magento\TwoFactorAuth\Model\Config\Source\EnabledProvider

What it does

This class provides a list of enabled two-factor authentication (2FA) providers for use in Magento admin configuration dropdowns and forms.

Developers use this class when they need to populate select fields or multi-select options with available 2FA methods like Google Authenticator or Duo Security that are currently enabled in the system.

Public Methods

  • toOptionArray()