Smile\ElasticsuiteVirtualCategory\Controller\Adminhtml\Category\Virtual\Preview::setSortedProducts PHP Method

setSortedProducts() private method

Append products sorted by the user to the category.
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;
    }