public function getDataForBreadcrumb(Page $page)
    {
        $parent = $page->getParent();
        if ($parent)
        {
            $data = array();
            if ($parent->getParent())
            {
                $data = array_merge($this->getDataForBreadcrumb($parent), $data);
            }
            $data[] = $parent;
            return $data;
        }
        return NULL;
    }
public function getDataForBreadcrumb(Page $page)
    {
        $parent = $page->getParent();
        if ($parent)
        {
            $data = array();
            if ($parent->getParent())
            {
                $data = array_merge($this->getDataForBreadcrumb($parent), $data);
            }
            $data[] = $parent;
            return $data;
        }
        return NULL;
    }
public function getDataForBreadcrumb ( Page $ page ) { $ parent = $ page -> getParent ( ) ; if ( $ parent ) { $ data = array ( ) ; if ( $ parent -> getParent ( ) ) { $ data = array_merge ( $ this -> getDataForBreadcrumb ( $ parent ) , $ data ) ; } $ data [ ] = $ parent ; return $ data ; } return NULL ; }
Get breadcrumb data

@param Page $page
@return array|NULL
Get breadcrumb data