Neos.ContentRepository/Classes/Domain/Utility/NodePaths.php
public static function getParentPath($path)
    {
        if ($path === '/') {
            $parentPath = '';
        } elseif (strrpos($path, '/') === 0) {
            $parentPath = '/';
        } else {
            $parentPath = substr($path, 0, strrpos($path, '/'));
        }

        return $parentPath;
    }
public static function getParentPath($path)
    {
        if ($path === '/') {
            $parentPath = '';
        } elseif (strrpos($path, '/') === 0) {
            $parentPath = '/';
        } else {
            $parentPath = substr($path, 0, strrpos($path, '/'));
        }

        return $parentPath;
    }
public static function getParentPath ( $ path ) { if ( $ path === '/' ) { $ parentPath = '' ; } elseif ( strrpos ( $ path , '/' ) === 0 ) { $ parentPath = '/' ; } else { $ parentPath = substr ( $ path , 0 , strrpos ( $ path , '/' ) ) ; } return $ parentPath ; }
Get the parent path of the given Node path.

@param string $path
@return string
Get the parent path of the given Node path .