Log in
Model

PopulateWithValues

Magento\Catalog\Model\CategoryRepository\PopulateWithValues

What it does

This class populates a category entity with its attribute values and handles store-specific vs default values.

It's used internally by the CategoryRepository when loading categories to ensure proper attribute value scope handling, setting null for non-overridden store-view attributes and tracking which attributes should use default values via the 'use_default' data array.

Public Methods

  • execute()
  • _resetState()