public function getBreadcrumbEntries(MenuEntry $entry = null)
    {
        $this->activateCorrectMenuEntry();
        
        if ($entry === null) {
            $entry = $this->activeMenuEntry;
            
            if ($entry == null) {
                return array();
            }
        }
        
        // Process the entries for the given entry
        $entries = array_reverse($this->processBreadcrumbEntries($entry), false);
        
        // If we have additional breadcrumb function for the breadcrumb navigation
        // we add the function here to the entries array
        if ($this->breadcrumbFunction != '') {
            array_push($entries, new HiddenMenuEntry(
                $this->breadcrumbFunction,
                $this->framework->getRequest()->getRoute()
            ));
        }
        
        return $entries;
    }