Log in
Model

PositionResolver

Magento\Catalog\Model\Category\Product\PositionResolver

What it does

This class retrieves product positioning data for products assigned to a specific category.

Developers use it when they need to get the display order of products within a category, such as when rendering category product lists or managing product sorting.

It provides methods to fetch all product positions as an array or find the minimum position value for a given category.

Public Methods

  • getPositions()
  • getMinPosition()