private function getProductSavedPositions(Category $category)
    {
        $productPositions = [];

        if ($category->getId()) {
            $productPositions = $this->productPositionResource->getProductPositionsByCategory($category);
        }

        return json_encode($productPositions, JSON_FORCE_OBJECT);
    }
private function getProductSavedPositions(Category $category)
    {
        $productPositions = [];

        if ($category->getId()) {
            $productPositions = $this->productPositionResource->getProductPositionsByCategory($category);
        }

        return json_encode($productPositions, JSON_FORCE_OBJECT);
    }
private function getProductSavedPositions ( Category $ category ) { $ productPositions = [ ] ; if ( $ category -> getId ( ) ) { $ productPositions = $ this -> productPositionResource -> getProductPositionsByCategory ( $ category ) ; } return json_encode ( $ productPositions , JSON_FORCE_OBJECT ) ; }
Load product saved positions for the current category.

@param Category $category Category.

@return array
Load product saved positions for the current category .