Model
WebsiteRepository
Magento\Store\Model\WebsiteRepository
What it does
WebsiteRepository is the primary service for retrieving website entities in Magento 2.
Developers use this repository to fetch websites by code or ID, get all websites, or retrieve the default website.
It provides caching and lazy loading to optimize performance when accessing website configurations throughout the application.
Public Methods
- get()
- getById()
- getList()
- getDefault()
- clean()