Log in
Model

StoresData

Magento\Store\Model\StoresData

What it does

This class manages the retrieval and caching of active store IDs based on the current run mode and scope.

Developers use this when they need to determine which stores are available and what the default store is for a given context, with results automatically cached for performance.

It's particularly useful in multi-store setups where store resolution needs to be fast and efficient.

Public Methods

  • getStoresData()