src/Kunstmaan/AdminBundle/Helper/Menu/MenuBuilder.php
public function getTopChildren()
    {
        if (is_null($this->topMenuItems)) {
            /* @var $request Request */
            $request = $this->container->get('request_stack')->getCurrentRequest();
            $this->topMenuItems = array();
            foreach ($this->getAdaptors() as $menuAdaptor) {
                $menuAdaptor->adaptChildren($this, $this->topMenuItems, null, $request);
            }
        }

        return $this->topMenuItems;
    }
public function getTopChildren()
    {
        if (is_null($this->topMenuItems)) {
            /* @var $request Request */
            $request = $this->container->get('request_stack')->getCurrentRequest();
            $this->topMenuItems = array();
            foreach ($this->getAdaptors() as $menuAdaptor) {
                $menuAdaptor->adaptChildren($this, $this->topMenuItems, null, $request);
            }
        }

        return $this->topMenuItems;
    }
public function getTopChildren ( ) { if ( is_null ( $ this -> topMenuItems ) ) { /* @var $request Request */ $ request = $ this -> container -> get ( 'request_stack' ) -> getCurrentRequest ( ) ; $ this -> topMenuItems = array ( ) ; foreach ( $ this -> getAdaptors ( ) as $ menuAdaptor ) { $ menuAdaptor -> adaptChildren ( $ this , $ this -> topMenuItems , null , $ request ) ; } } return $ this -> topMenuItems ; }
Get all top menu items

@return MenuItem[]
Get all top menu items