code/ReportAdmin.php
public function Breadcrumbs($unlinked = false)
    {
        $items = parent::Breadcrumbs($unlinked);

        // The root element should explicitly point to the root node.
        // Uses session state for current record otherwise.
        $items[0]->Link = singleton('SilverStripe\\Reports\\ReportAdmin')->Link();

        if ($report = $this->reportObject) {
            $breadcrumbs = $report->getBreadcrumbs();
            if (!empty($breadcrumbs)) {
                foreach ($breadcrumbs as $crumb) {
                    $items->push($crumb);
                }
            }

            //build breadcrumb trail to the current report
            $items->push(new ArrayData(array(
                'Title' => $report->title(),
                'Link' => Controller::join_links(
                    $this->Link(),
                    '?' . http_build_query(array('q' => $this->request->requestVar('q')))
                )
            )));
        }

        return $items;
    }
public function Breadcrumbs($unlinked = false)
    {
        $items = parent::Breadcrumbs($unlinked);

        // The root element should explicitly point to the root node.
        // Uses session state for current record otherwise.
        $items[0]->Link = singleton('SilverStripe\\Reports\\ReportAdmin')->Link();

        if ($report = $this->reportObject) {
            $breadcrumbs = $report->getBreadcrumbs();
            if (!empty($breadcrumbs)) {
                foreach ($breadcrumbs as $crumb) {
                    $items->push($crumb);
                }
            }

            //build breadcrumb trail to the current report
            $items->push(new ArrayData(array(
                'Title' => $report->title(),
                'Link' => Controller::join_links(
                    $this->Link(),
                    '?' . http_build_query(array('q' => $this->request->requestVar('q')))
                )
            )));
        }

        return $items;
    }
public function Breadcrumbs ( $ unlinked = false ) { $ items = parent :: Breadcrumbs ( $ unlinked ) ; // The root element should explicitly point to the root node. // Uses session state for current record otherwise. $ items [ 0 ] -> Link = singleton ( 'SilverStripe\\Reports\\ReportAdmin' ) -> Link ( ) ; if ( $ report = $ this -> reportObject ) { $ breadcrumbs = $ report -> getBreadcrumbs ( ) ; if ( ! empty ( $ breadcrumbs ) ) { foreach ( $ breadcrumbs as $ crumb ) { $ items -> push ( $ crumb ) ; } } //build breadcrumb trail to the current report $ items -> push ( new ArrayData ( array ( 'Title' => $ report -> title ( ) , 'Link' => Controller :: join_links ( $ this -> Link ( ) , '?' . http_build_query ( array ( 'q' => $ this -> request -> requestVar ( 'q' ) ) ) ) ) ) ) ; } return $ items ; }
Returns the Breadcrumbs for the ReportAdmin

@param bool $unlinked
@return ArrayList
Returns the Breadcrumbs for the ReportAdmin