Group\Collection
Magento\Store\Model\ResourceModel\Group\Collection
What it does
This class manages collections of store groups in Magento 2, allowing developers to retrieve, filter, and manipulate multiple store group records from the database.
It's commonly used when you need to display store group dropdowns in admin forms, filter store groups by website, or exclude default/admin groups from listings.
The collection provides convenient methods to load store groups with various filtering options like excluding groups without store views or without assigned categories.
Public Methods
- setLoadDefault()
- getLoadDefault()
- setWithoutDefaultFilter()
- setWithoutStoreViewFilter()
- setWithoutAssignedCategoryFilter()
- _beforeLoad()
- toOptionArray()
- addWebsiteFilter()