Repository
StoreRepositoryInterface
Magento\Store\Api\StoreRepositoryInterface
What it does
This interface defines the contract for retrieving store information in Magento 2.
Developers use this repository to fetch stores by ID or code, get lists of all stores, check if stores are active, and clear cached store data.
It's essential when working with multi-store setups or needing to access store configuration programmatically.
Public Methods
- get()
- getActiveStoreByCode()
- getActiveStoreById()
- getById()
- getList()
- clean()