src/Sulu/Bundle/PageBundle/Repository/ResourceLocatorRepository.php
private function getBasePath($uuid = null, $default = 1)
    {
        if (null !== $uuid) {
            return str_replace('{uuid}', $uuid, $this->apiBasePath[2]);
        } else {
            return $this->apiBasePath[$default];
        }
    }
private function getBasePath($uuid = null, $default = 1)
    {
        if (null !== $uuid) {
            return str_replace('{uuid}', $uuid, $this->apiBasePath[2]);
        } else {
            return $this->apiBasePath[$default];
        }
    }
private function getBasePath ( $ uuid = null , $ default = 1 ) { if ( null !== $ uuid ) { return str_replace ( '{uuid}' , $ uuid , $ this -> apiBasePath [ 2 ] ) ; } else { return $ this -> apiBasePath [ $ default ] ; } }
returns base path fo given uuid.

@param null|string $uuid
@param int $default

@return string
returns base path fo given uuid .