Log in
Model

StoreWebsiteRelation

Magento\Store\Model\ResourceModel\StoreWebsiteRelation

What it does

This resource model manages the relationships between stores, store groups, and websites in Magento 2's multi-store architecture.

Developers use this class to retrieve store information associated with a specific website, including filtering by store group, store ID, or active status.

It's particularly useful when you need to programmatically access store hierarchy data or validate store-website relationships.

Public Methods

  • getStoreByWebsiteId()
  • getWebsiteStores()