private function buildIndexForContainer($data)
    {
        $this->_paths = [];
        $this->_nodes = [];
        
        foreach ($data as $item) {
            $this->_nodes[$item['nav_id']] = ['parent_nav_id' => $item['parent_nav_id'], 'alias' => $item['alias'], 'nav_id' => $item['nav_id']];
        }
        
        foreach ($this->_nodes as $node) {
            $this->_paths[$node['nav_id']] = $this->processParent($node['nav_id'], null);
        }
        
        return $this->_paths;
    }
private function buildIndexForContainer($data)
    {
        $this->_paths = [];
        $this->_nodes = [];
        
        foreach ($data as $item) {
            $this->_nodes[$item['nav_id']] = ['parent_nav_id' => $item['parent_nav_id'], 'alias' => $item['alias'], 'nav_id' => $item['nav_id']];
        }
        
        foreach ($this->_nodes as $node) {
            $this->_paths[$node['nav_id']] = $this->processParent($node['nav_id'], null);
        }
        
        return $this->_paths;
    }
private function buildIndexForContainer ( $ data ) { $ this -> _paths = [ ] ; $ this -> _nodes = [ ] ; foreach ( $ data as $ item ) { $ this -> _nodes [ $ item [ 'nav_id' ] ] = [ 'parent_nav_id' => $ item [ 'parent_nav_id' ] , 'alias' => $ item [ 'alias' ] , 'nav_id' => $ item [ 'nav_id' ] ] ; } foreach ( $ this -> _nodes as $ node ) { $ this -> _paths [ $ node [ 'nav_id' ] ] = $ this -> processParent ( $ node [ 'nav_id' ] , null ) ; } return $ this -> _paths ; }
Helper method to build an index with all the alias paths to build the correct links.

@param array $data
@return array An array with the index where the key is the nav_id
Helper method to build an index with all the alias paths to build the correct links .