StoreCategories
Magento\Catalog\Model\Category\StoreCategories
What it does
This class retrieves all category IDs associated with a specific store group in Magento 2.
Developers use it when they need to fetch a complete list of categories available for a particular store, including all child categories from the root category down.
It's particularly useful for operations that need to work with store-specific category hierarchies, such as navigation building or category filtering.
Public Methods
- getCategoryIds()