Model

IsLoginAsCustomerEnabledForCustomerResult

Magento\LoginAsCustomer\Model\IsLoginAsCustomerEnabledForCustomerResult

What it does

This class represents the result of checking whether the 'Login as Customer' feature is enabled for a specific customer.

It stores validation messages and determines if login is allowed based on whether any error messages exist.

Developers use this to communicate why a customer might not be eligible for admin login-as-customer functionality.

Public Methods

  • isEnabled()
  • getMessages()
  • setMessages()