public function getBreadCrumbs()
    {
        $crumbs = [];

        if (null !== $this->parent) {
            $crumbs = $this->getParent()->getBreadCrumbs();
        }

        $crumbs[$this->slug] = $this->getShortTitle();

        return $crumbs;
    }
public function getBreadCrumbs()
    {
        $crumbs = [];

        if (null !== $this->parent) {
            $crumbs = $this->getParent()->getBreadCrumbs();
        }

        $crumbs[$this->slug] = $this->getShortTitle();

        return $crumbs;
    }
public function getBreadCrumbs ( ) { $ crumbs = [ ] ; if ( null !== $ this -> parent ) { $ crumbs = $ this -> getParent ( ) -> getBreadCrumbs ( ) ; } $ crumbs [ $ this -> slug ] = $ this -> getShortTitle ( ) ; return $ crumbs ; }
Get breadcrumbs.

Loops through all parents to determine the breadcrumbs and stores them in
an associative array like [slug => label]

@return array
Get breadcrumbs .