Log in
Model

Website

Magento\Store\Model\StoreResolver\Website

What it does

This class resolves and retrieves store information within a website scope in Magento 2.

Developers use it to get all active store IDs for a specific website or to determine the default store ID for a given website code.

It's particularly useful when working with multi-store setups and need to filter or identify stores within a specific website context.

Public Methods

  • getAllowedStoreIds()
  • getDefaultStoreId()