WebsiteRepositoryInterface
Magento\Store\Api\WebsiteRepositoryInterface
What it does
This interface defines the contract for retrieving and managing website entities in Magento 2.
Developers use this repository to fetch websites by code or ID, get a list of all websites, retrieve the default website, or clear cached website data.
It's commonly used in multi-website setups when you need to programmatically access website information or switch context between different websites.
Public Methods
- get()
- getById()
- getList()
- getDefault()
- clean()