src/Mmi/Mvc/ViewHelper/Navigation.php
public function removeLastBreadcrumb()
    {
        //obliczanie indeksu ostatniego breadcrumba
        $index = count($this->_breadcrumbsData) - 1;
        //brak breadcrumba
        if (!isset($this->_breadcrumbsData[$index])) {
            return $this;
        }
        //usuwanie
        unset($this->_breadcrumbsData[$index]);
        //przebudowa breadcrumbów
        return $this->_buildBreadcrumbs();
    }
public function removeLastBreadcrumb()
    {
        //obliczanie indeksu ostatniego breadcrumba
        $index = count($this->_breadcrumbsData) - 1;
        //brak breadcrumba
        if (!isset($this->_breadcrumbsData[$index])) {
            return $this;
        }
        //usuwanie
        unset($this->_breadcrumbsData[$index]);
        //przebudowa breadcrumbów
        return $this->_buildBreadcrumbs();
    }
public function removeLastBreadcrumb ( ) { //obliczanie indeksu ostatniego breadcrumba $ index = count ( $ this -> _breadcrumbsData ) - 1 ; //brak breadcrumba if ( ! isset ( $ this -> _breadcrumbsData [ $ index ] ) ) { return $ this ; } //usuwanie unset ( $ this -> _breadcrumbsData [ $ index ] ) ; //przebudowa breadcrumbów return $ this -> _buildBreadcrumbs ( ) ; }
Usuwa ostatni breadcrumb
@return \Mmi\Mvc\ViewHelper\Navigation
Usuwa ostatni breadcrumb