private setSortedProducts ( Magento\Catalog\Api\Data\CategoryInterface $category ) | ||
$category | Magento\Catalog\Api\Data\CategoryInterface | Category. |
private function setSortedProducts(CategoryInterface $category)
{
$productPositions = $this->getRequest()->getParam('product_position', []);
$category->setSortedProductIds(array_keys($productPositions));
return $this;
}