public function getFullPath($delimeter = " &rarr; ", $callable = false)
    {
        $parents = $this->owner->getParents()->all();
        if ( ! $parents ) {
            return $this->prepareCrumb($this->owner, $callable, true, true);
        } else {
            $crumbs = [ $this->prepareCrumb(array_shift($parents), $callable, false, false) ];
            foreach ( $parents as $parent ) {
                $crumbs[] = $this->prepareCrumb($parent, $callable, false, false);
            }
            $crumbs[] = $this->prepareCrumb($this->owner, $callable, false, true);
            return implode($delimeter, array_filter($crumbs));
        }
    }
public function getFullPath($delimeter = " &rarr; ", $callable = false)
    {
        $parents = $this->owner->getParents()->all();
        if ( ! $parents ) {
            return $this->prepareCrumb($this->owner, $callable, true, true);
        } else {
            $crumbs = [ $this->prepareCrumb(array_shift($parents), $callable, false, false) ];
            foreach ( $parents as $parent ) {
                $crumbs[] = $this->prepareCrumb($parent, $callable, false, false);
            }
            $crumbs[] = $this->prepareCrumb($this->owner, $callable, false, true);
            return implode($delimeter, array_filter($crumbs));
        }
    }
public function getFullPath ( $ delimeter = " &rarr; " , $ callable = false ) { $ parents = $ this -> owner -> getParents ( ) -> all ( ) ; if ( ! $ parents ) { return $ this -> prepareCrumb ( $ this -> owner , $ callable , true , true ) ; } else { $ crumbs = [ $ this -> prepareCrumb ( array_shift ( $ parents ) , $ callable , false , false ) ] ; foreach ( $ parents as $ parent ) { $ crumbs [ ] = $ this -> prepareCrumb ( $ parent , $ callable , false , false ) ; } $ crumbs [ ] = $ this -> prepareCrumb ( $ this -> owner , $ callable , false , true ) ; return implode ( $ delimeter , array_filter ( $ crumbs ) ) ; } }
Return full path of model
@param string $delimeter
@param callable $callable function ( $model, $isRoot, $isLeaf ) { return 'string' or false; }
@return string
Return full path of model