Model

SetLoggedAsCustomerCustomerId

Magento\LoginAsCustomer\Model\SetLoggedAsCustomerCustomerId

What it does

This class stores the customer ID in the admin session when an admin user logs in as a customer.

Developers use this to track which customer account an admin is currently impersonating, enabling the 'Login as Customer' feature where admin users can access the storefront as a specific customer for support purposes.

Public Methods

  • execute()