public function render(ItemInterface $item, array $options = array())
    {
        $options = array_merge($this->defaultOptions, $options);
        $options['rootLevel'] = $item->getLevel();
        return $this->getMenu($item, $options) ?: '';
    }
public function render(ItemInterface $item, array $options = array())
    {
        $options = array_merge($this->defaultOptions, $options);
        $options['rootLevel'] = $item->getLevel();
        return $this->getMenu($item, $options) ?: '';
    }
public function render ( ItemInterface $ item , array $ options = array ( ) ) { $ options = array_merge ( $ this -> defaultOptions , $ options ) ; $ options [ 'rootLevel' ] = $ item -> getLevel ( ) ; return $ this -> getMenu ( $ item , $ options ) ? : '' ; }
Renders menu tree.

Common options:
- depth: The depth at which the item is rendered
null: no limit
0: no children
1: only direct children
- currentAsLink: whether the current item should be a link
- currentClass: class added to the current item
- ancestorClass: class added to the ancestors of the current item
- firstClass: class added to the first child
- lastClass: class added to the last child

@param ItemInterface $item    Menu item
@param array         $options some rendering options

@return string
Renders menu tree .