src/Menu/FrontendMenuBuilder.php
public function createFooterMenu($menuName, $classes = '')
    {
        $menu = $this->factory->createItem($menuName);
        if ($classes) {
            $menu->setChildrenAttribute('class', $classes);
        }

        /** @var $mainMenu Menu */
        $menuIterator = $this->getFullMenu($menuName);

        if (!$menuIterator) {
            return $menu;
        }

        $startDepth = 1;
        $menu = $this->createMenu($menu, $menuIterator, $startDepth);

        return $menu;
    }
public function createFooterMenu($menuName, $classes = '')
    {
        $menu = $this->factory->createItem($menuName);
        if ($classes) {
            $menu->setChildrenAttribute('class', $classes);
        }

        /** @var $mainMenu Menu */
        $menuIterator = $this->getFullMenu($menuName);

        if (!$menuIterator) {
            return $menu;
        }

        $startDepth = 1;
        $menu = $this->createMenu($menu, $menuIterator, $startDepth);

        return $menu;
    }
public function createFooterMenu ( $ menuName , $ classes = '' ) { $ menu = $ this -> factory -> createItem ( $ menuName ) ; if ( $ classes ) { $ menu -> setChildrenAttribute ( 'class' , $ classes ) ; } /** @var $mainMenu Menu */ $ menuIterator = $ this -> getFullMenu ( $ menuName ) ; if ( ! $ menuIterator ) { return $ menu ; } $ startDepth = 1 ; $ menu = $ this -> createMenu ( $ menu , $ menuIterator , $ startDepth ) ; return $ menu ; }
Used to create a simple navigation for the footer.

@param $menuName
@param string $classes

@return \Knp\Menu\ItemInterface
Used to create a simple navigation for the footer .