Model

StoreViewLogin

Magento\LoginAsCustomerAdminUi\Model\Config\Source\StoreViewLogin

What it does

This class provides configuration options for how store views are selected when an admin user logs in as a customer.

It returns two options: auto-detection (which automatically determines the appropriate store view) and manual selection (which requires the admin to explicitly choose a store view).

Developers use this class in the admin configuration system to populate dropdown menus for the Login as Customer feature settings.

Public Methods

  • toOptionArray()