Log in
Model

DataCategoryUsedInProductsHashMap

Magento\CatalogUrlRewrite\Model\Map\DataCategoryUsedInProductsHashMap

What it does

This class retrieves and caches category IDs that are associated with products in a given root category, but excludes categories that are already part of the main category tree being processed.

Developers use this during URL rewrite generation to identify additional categories that need URL rewrites when products are shared across multiple category branches.

Public Methods

  • getAllData()
  • getData()
  • resetData()
  • _resetState()