Neos.ContentRepository/Classes/Domain/Service/ImportExport/NodeImportService.php
protected function getParentPath($path)
    {
        if ($path === '/') {
            return '';
        }
        $endIndex = strrpos($path, '/');
        $index = strpos($path, '/');
        // path is something like /nodeInRootSpace
        if ($index === $endIndex) {
            return '/';
        } else { // node is something like /node/not/in/root/space
            return substr($path, 0, $endIndex);
        }
    }
protected function getParentPath($path)
    {
        if ($path === '/') {
            return '';
        }
        $endIndex = strrpos($path, '/');
        $index = strpos($path, '/');
        // path is something like /nodeInRootSpace
        if ($index === $endIndex) {
            return '/';
        } else { // node is something like /node/not/in/root/space
            return substr($path, 0, $endIndex);
        }
    }
protected function getParentPath ( $ path ) { if ( $ path === '/' ) { return '' ; } $ endIndex = strrpos ( $ path , '/' ) ; $ index = strpos ( $ path , '/' ) ; // path is something like /nodeInRootSpace if ( $ index === $ endIndex ) { return '/' ; } else { // node is something like /node/not/in/root/space return substr ( $ path , 0 , $ endIndex ) ; } }
Provides the parent of the given path

@param string $path path to get parent for
@return string parent path
Provides the parent of the given path