Skip to main content
4 events
when toggle format what by license comment
Jan 18, 2023 at 19:45 comment added PromInc I know it's out of scope of the OP, but you can also call ->getById(2) if you know the store ID and not the code. This answer lead me in the right direction to solve my needs that way. There also is \Magento\Store\Api\WebsiteRepositoryInterface that is similar but for the website scope.
Apr 1, 2022 at 13:39 comment added Black I had to use \Magento\Store\Model\StoreRepository instead.
Nov 28, 2019 at 14:20 comment added Macas Way better than given answer. Single store is loaded instead of all of them. Also try/catch is used
Aug 28, 2019 at 4:58 history answered d.yuk CC BY-SA 4.0