Log in
Repository

StoreRepositoryInterface

Magento\Store\Api\StoreRepositoryInterface

What it does

This interface defines the contract for retrieving and managing Magento store entities.

Developers use it to fetch stores by ID or code, get lists of all stores, or retrieve only active stores.

It's commonly used in multi-store setups when you need to load store configurations, validate store status, or work with store-specific data programmatically.

Public Methods

  • get()
  • getActiveStoreByCode()
  • getActiveStoreById()
  • getById()
  • getList()
  • clean()