src/GridFieldConfigurablePaginator.php
public function setPageSizes(array $pageSizes)
    {
        $this->pageSizes = $pageSizes;

        // Reset items per page
        $this->setItemsPerPage(current($pageSizes));

        return $this;
    }
public function setPageSizes(array $pageSizes)
    {
        $this->pageSizes = $pageSizes;

        // Reset items per page
        $this->setItemsPerPage(current($pageSizes));

        return $this;
    }
public function setPageSizes ( array $ pageSizes ) { $ this -> pageSizes = $ pageSizes ; // Reset items per page $ this -> setItemsPerPage ( current ( $ pageSizes ) ) ; return $ this ; }
Set the page sizes to use in the "Show x" dropdown

@param array $pageSizes
@return $this
Set the page sizes to use in the Show x dropdown