Log in
Model

GetStoresListByWebsiteIds

Magento\Store\Model\StoreResolver\GetStoresListByWebsiteIds

What it does

This class retrieves all store IDs associated with one or more website IDs in Magento 2.

Developers use this when they need to find which stores belong to specific websites, which is useful for multi-website operations like inventory management, pricing rules, or content synchronization across websites.

Public Methods

  • execute()