Collection
Group\Collection
Magento\Store\Model\ResourceModel\Group\Collection
What it does
This collection class is used to retrieve and manage store groups in Magento 2.
Developers use it to fetch groups of stores, filter them by website, exclude default admin groups, or get groups without assigned categories.
It's commonly used in admin panels, store management features, and when building dropdowns or options lists for store group selection.
Public Methods
- setLoadDefault()
- getLoadDefault()
- setWithoutDefaultFilter()
- setWithoutStoreViewFilter()
- setWithoutAssignedCategoryFilter()
- _beforeLoad()
- toOptionArray()
- addWebsiteFilter()