Model
AuthenticationState
Magento\Wishlist\Model\AuthenticationState
What it does
This class determines whether authentication is required for wishlist operations in Magento 2.
Developers can use this to check if customers must be logged in to interact with wishlists.
By default, it returns true, meaning authentication is always enabled, but it can be overridden via dependency injection to customize authentication behavior.
Public Methods
- isEnabled()