Bundle/MediaBundle/Helper/Menu/MenuBuilder.php
public function getTopChildren()
    {
        if (is_null($this->topMenuItems)) {
            $this->topMenuItems = [];
            foreach ($this->adaptors as $menuAdaptor) {
                $menuAdaptor->adaptChildren($this, $this->topMenuItems, null, $this->getRequest());
            }
        }

        return $this->topMenuItems;
    }
public function getTopChildren()
    {
        if (is_null($this->topMenuItems)) {
            $this->topMenuItems = [];
            foreach ($this->adaptors as $menuAdaptor) {
                $menuAdaptor->adaptChildren($this, $this->topMenuItems, null, $this->getRequest());
            }
        }

        return $this->topMenuItems;
    }
public function getTopChildren ( ) { if ( is_null ( $ this -> topMenuItems ) ) { $ this -> topMenuItems = [ ] ; foreach ( $ this -> adaptors as $ menuAdaptor ) { $ menuAdaptor -> adaptChildren ( $ this , $ this -> topMenuItems , null , $ this -> getRequest ( ) ) ; } } return $ this -> topMenuItems ; }
Get all top menu items.

@return MenuItem[]
Get all top menu items .