Log in
Model

StoreCategories

Magento\Catalog\Model\Category\StoreCategories

What it does

This class retrieves all category IDs associated with a specific store group by fetching the root category and its children.

Developers use it when they need to get a complete list of category IDs available for a particular store, useful for filtering products, building navigation menus, or store-specific category operations.

Public Methods

  • getCategoryIds()