Log in
Model

StoreWebsiteRelation

Magento\Store\Model\ResourceModel\StoreWebsiteRelation

What it does

This resource model retrieves store-website relationship data from the database.

Developers use it to fetch stores associated with a specific website, either as simple store IDs or detailed store information including store group and website data.

It's useful when working with multi-store setups to determine which stores belong to a particular website.

Public Methods

  • getStoreByWebsiteId()
  • getWebsiteStores()