Log in
Interface

ReaderInterface

Magento\Store\Model\StoreResolver\ReaderInterface

What it does

This interface defines methods for retrieving store information within a specific scope in Magento 2.

Developers implement this interface when creating custom store resolvers that need to determine which stores are available for a given scope (like website or store group) and identify the default store.

It's commonly used in multi-store setups to control store access and resolve store context.

Public Methods

  • getAllowedStoreIds()
  • getDefaultStoreId()