Jarves\Model\Node::getPath PHP Method

getPath() public method

level 1 -> level 2 -> page where ' -> ' is a $pDelimiter
public getPath ( string $pDelimiter = ' » ' ) : string
$pDelimiter string
return string
    public function getPath($pDelimiter = ' » ')
    {
        if (null === $this->path) {
            $parents = $this->getParents();
            $path = $this->getDomain()->getDomain();
            foreach ($parents as $parent) {
                $path .= $pDelimiter . $parent->getTitle();
            }
            $path .= $pDelimiter . $this->getTitle();
            $this->path = $path;
        }
        return $this->path;
    }