50 foreach ($this->storeRepository->getList() as
$store) {
51 if (
$store->getIsActive()) {
__construct(\Magento\Store\Api\StoreRepositoryInterface $storeRepository, \Magento\Store\Api\WebsiteRepositoryInterface $websiteRepository, \Magento\Store\Api\GroupRepositoryInterface $groupRepository)
getDefaultStoreId($scopeCode)
getAllowedStoreIds($scopeCode)