Log in
Model

Hydrator

Magento\Catalog\Model\Product\Hydrator

What it does

The Product Hydrator class is responsible for converting product entities to arrays (extract) and populating product entities from arrays (hydrate).

Developers use this class when they need to transform product data between object and array formats, such as during saving, loading, or API operations.

It ensures attribute locks are preserved during the hydration process.

Public Methods

  • extract()
  • hydrate()