main/app/JVal/Context.php
public function getCurrentPath()
    {
        $this->pathSegments = array_slice($this->pathSegments, 0, $this->pathLength);

        return $this->pathLength ? '/'.implode('/', $this->pathSegments) : '';
    }
public function getCurrentPath()
    {
        $this->pathSegments = array_slice($this->pathSegments, 0, $this->pathLength);

        return $this->pathLength ? '/'.implode('/', $this->pathSegments) : '';
    }
public function getCurrentPath ( ) { $ this -> pathSegments = array_slice ( $ this -> pathSegments , 0 , $ this -> pathLength ) ; return $ this -> pathLength ? '/' . implode ( '/' , $ this -> pathSegments ) : '' ; }
Returns the path of the current node.

@return string
Returns the path of the current node .