src/Webpage/Traits/HasParent.php
protected function getFullPath($item = null)
    {
        if (!$item) {
            $item = $this;
        }

        if (!$parent = $item->parent) {
            return str_start($item->slug, '/');
        }

        return str_start(sprintf('%s%s', $this->getFullPath($parent), str_start($item->slug, '/')), '/');
    }
protected function getFullPath($item = null)
    {
        if (!$item) {
            $item = $this;
        }

        if (!$parent = $item->parent) {
            return str_start($item->slug, '/');
        }

        return str_start(sprintf('%s%s', $this->getFullPath($parent), str_start($item->slug, '/')), '/');
    }
protected function getFullPath ( $ item = null ) { if ( ! $ item ) { $ item = $ this ; } if ( ! $ parent = $ item -> parent ) { return str_start ( $ item -> slug , '/' ) ; } return str_start ( sprintf ( '%s%s' , $ this -> getFullPath ( $ parent ) , str_start ( $ item -> slug , '/' ) ) , '/' ) ; }
Get full path.

@return string Full path
Get full path .