Model
StoreResolver
Magento\Store\Model\StoreResolver
What it does
This class determines which store view should be used for the current request by checking the URL path, request parameters, or store cookies.
Developers use this when they need to identify the active store context in multi-store Magento installations, particularly for custom modules that need store-specific behavior or when resolving store codes from incoming HTTP requests.
Public Methods
- getCurrentStoreId()