protected function getUriPath()
    {
        $path = dirname($this->getPathFromContent());
        $parts = explode(DIRECTORY_SEPARATOR, $path);

        $uriParts = array_filter($parts, function ($dirname) {
            return false === $this->isTopLevel();
        });

        return trim(implode(DIRECTORY_SEPARATOR, $uriParts), DIRECTORY_SEPARATOR);
    }
protected function getUriPath()
    {
        $path = dirname($this->getPathFromContent());
        $parts = explode(DIRECTORY_SEPARATOR, $path);

        $uriParts = array_filter($parts, function ($dirname) {
            return false === $this->isTopLevel();
        });

        return trim(implode(DIRECTORY_SEPARATOR, $uriParts), DIRECTORY_SEPARATOR);
    }
protected function getUriPath ( ) { $ path = dirname ( $ this -> getPathFromContent ( ) ) ; $ parts = explode ( DIRECTORY_SEPARATOR , $ path ) ; $ uriParts = array_filter ( $ parts , function ( $ dirname ) { return false === $ this -> isTopLevel ( ) ; } ) ; return trim ( implode ( DIRECTORY_SEPARATOR , $ uriParts ) , DIRECTORY_SEPARATOR ) ; }
Returns the URI parts to the Entry up to but not including
the slug, based on the file location.

@return string
Returns the URI parts to the Entry up to but not including the slug based on the file location .