Model
GroupRepository
Magento\Store\Model\GroupRepository
What it does
The GroupRepository class is responsible for retrieving and managing store group information in Magento 2.
Developers use this class to fetch store group data by ID or get a list of all store groups, which is essential when working with multi-store configurations.
It implements caching to improve performance by storing loaded groups in memory and provides a clean method to reset the cache.
Public Methods
- get()
- getList()
- clean()