Log in
Interface

ReaderInterface

Magento\Store\Model\StoreResolver\ReaderInterface

What it does

This interface defines methods for reading store-related information within a specific scope in Magento 2.

Developers implement this interface when they need to retrieve allowed store IDs or determine the default store ID for a given scope code (like website or store group).

It's primarily used in store resolution logic to determine which stores are accessible within different contexts.

Public Methods

  • getAllowedStoreIds()
  • getDefaultStoreId()