src/control/CatalogueController.php
public function PaginatedProducts($limit = 10)
    {
        $products = $this->SortedProducts();
        $filter = $this->getFilter();

        if (count($filter)) {
            $products = $products->filter($filter);
        }

        return PaginatedList::create(
            $products,
            $this->getRequest()
        )->setPageLength($limit);
    }
public function PaginatedProducts($limit = 10)
    {
        $products = $this->SortedProducts();
        $filter = $this->getFilter();

        if (count($filter)) {
            $products = $products->filter($filter);
        }

        return PaginatedList::create(
            $products,
            $this->getRequest()
        )->setPageLength($limit);
    }
public function PaginatedProducts ( $ limit = 10 ) { $ products = $ this -> SortedProducts ( ) ; $ filter = $ this -> getFilter ( ) ; if ( count ( $ filter ) ) { $ products = $ products -> filter ( $ filter ) ; } return PaginatedList :: create ( $ products , $ this -> getRequest ( ) ) -> setPageLength ( $ limit ) ; }
Get a paginated list of products contained in this category

@return PaginatedList
Get a paginated list of products contained in this category