src/Sulu/Component/Rest/Listing/ListRestHelper.php
public function getOffset()
    {
        $page = $this->getRequest()->get('page', 1);
        $limit = $this->getRequest()->get('limit');

        return (null != $limit) ? $limit * ($page - 1) : null;
    }
public function getOffset()
    {
        $page = $this->getRequest()->get('page', 1);
        $limit = $this->getRequest()->get('limit');

        return (null != $limit) ? $limit * ($page - 1) : null;
    }
public function getOffset ( ) { $ page = $ this -> getRequest ( ) -> get ( 'page' , 1 ) ; $ limit = $ this -> getRequest ( ) -> get ( 'limit' ) ; return ( null != $ limit ) ? $ limit * ( $ page - 1 ) : null ; }
Returns the calculated value for the starting position based
on the page and limit values.

@return int|null
Returns the calculated value for the starting position based on the page and limit values .