Model

Config

Magento\LoginAsCustomer\Model\Config

What it does

This class provides configuration settings for the Login as Customer feature in Magento 2.

Developers use it to check if the feature is enabled, whether manual store view selection is allowed, and to retrieve the authentication token expiration time.

It acts as a centralized interface for accessing all Login as Customer module configuration values stored in the system settings.

Public Methods

  • isEnabled()
  • isStoreManualChoiceEnabled()
  • getAuthenticationDataExpirationTime()