function addExampleMenu(ItemInterface $menu, $section) {
        $child = $this->factory->createItem('example',
                    $this->getSubLevelOptions(array(
                    'uri' => null,
                    'labelAttributes' => array('icon' => 'icon-book',),
                    ))
                )
                ->setLabel($this->translate(sprintf('app.backend.menu.%s.example.main', $section)));
        $child
                ->addChild('example.company', array(
                    'route' => '',
                    ))
                ->setLabel($this->translate(sprintf('app.backend.menu.%s.example.company', $section)));
        $child
                ->addChild('example.technical_reports', array(
                    'route' => '',
                    ))
                ->setLabel($this->translate(sprintf('app.backend.menu.%s.example.technical_reports', $section)));
        
        
            $subchild = $this->factory->createItem('subexample',
                        $this->getSubLevelOptions(array(
                        'uri' => null,
                        'labelAttributes' => array('icon' => 'icon-book',),
                        ))
                    )
                    ->setLabel($this->translate(sprintf('app.backend.menu.%s.example.other.main', $section)));
            $subchild
                    ->addChild('example.other.admin', array(
                        'route' => self::ROUTE_DEFAULT,
                        ))
                    ->setLabel($this->translate(sprintf('app.backend.menu.%s.example.other.admin', $section)));

            $subchild->addChild('example.other.groups', array(
                        'route' => self::ROUTE_DEFAULT,
                    ))
                    ->setLabel($this->translate(sprintf('app.backend.menu.%s.example.other.groups', $section)));
        
            $child->addChild($subchild);
               
        $menu->addChild($child);
    }
function addExampleMenu(ItemInterface $menu, $section) {
        $child = $this->factory->createItem('example',
                    $this->getSubLevelOptions(array(
                    'uri' => null,
                    'labelAttributes' => array('icon' => 'icon-book',),
                    ))
                )
                ->setLabel($this->translate(sprintf('app.backend.menu.%s.example.main', $section)));
        $child
                ->addChild('example.company', array(
                    'route' => '',
                    ))
                ->setLabel($this->translate(sprintf('app.backend.menu.%s.example.company', $section)));
        $child
                ->addChild('example.technical_reports', array(
                    'route' => '',
                    ))
                ->setLabel($this->translate(sprintf('app.backend.menu.%s.example.technical_reports', $section)));
        
        
            $subchild = $this->factory->createItem('subexample',
                        $this->getSubLevelOptions(array(
                        'uri' => null,
                        'labelAttributes' => array('icon' => 'icon-book',),
                        ))
                    )
                    ->setLabel($this->translate(sprintf('app.backend.menu.%s.example.other.main', $section)));
            $subchild
                    ->addChild('example.other.admin', array(
                        'route' => self::ROUTE_DEFAULT,
                        ))
                    ->setLabel($this->translate(sprintf('app.backend.menu.%s.example.other.admin', $section)));

            $subchild->addChild('example.other.groups', array(
                        'route' => self::ROUTE_DEFAULT,
                    ))
                    ->setLabel($this->translate(sprintf('app.backend.menu.%s.example.other.groups', $section)));
        
            $child->addChild($subchild);
               
        $menu->addChild($child);
    }
function addExampleMenu ( ItemInterface $ menu , $ section ) { $ child = $ this -> factory -> createItem ( 'example' , $ this -> getSubLevelOptions ( array ( 'uri' => null , 'labelAttributes' => array ( 'icon' => 'icon-book' , ) , ) ) ) -> setLabel ( $ this -> translate ( sprintf ( 'app.backend.menu.%s.example.main' , $ section ) ) ) ; $ child -> addChild ( 'example.company' , array ( 'route' => '' , ) ) -> setLabel ( $ this -> translate ( sprintf ( 'app.backend.menu.%s.example.company' , $ section ) ) ) ; $ child -> addChild ( 'example.technical_reports' , array ( 'route' => '' , ) ) -> setLabel ( $ this -> translate ( sprintf ( 'app.backend.menu.%s.example.technical_reports' , $ section ) ) ) ; $ subchild = $ this -> factory -> createItem ( 'subexample' , $ this -> getSubLevelOptions ( array ( 'uri' => null , 'labelAttributes' => array ( 'icon' => 'icon-book' , ) , ) ) ) -> setLabel ( $ this -> translate ( sprintf ( 'app.backend.menu.%s.example.other.main' , $ section ) ) ) ; $ subchild -> addChild ( 'example.other.admin' , array ( 'route' => self :: ROUTE_DEFAULT , ) ) -> setLabel ( $ this -> translate ( sprintf ( 'app.backend.menu.%s.example.other.admin' , $ section ) ) ) ; $ subchild -> addChild ( 'example.other.groups' , array ( 'route' => self :: ROUTE_DEFAULT , ) ) -> setLabel ( $ this -> translate ( sprintf ( 'app.backend.menu.%s.example.other.groups' , $ section ) ) ) ; $ child -> addChild ( $ subchild ) ; $ menu -> addChild ( $ child ) ; }
Construye el menu de ejemplo

@param \Knp\Menu\ItemInterface $menu
@param type $section
Construye el menu de ejemplo