Knp\Bundle\MenuBundle\Templating\Helper\MenuHelper::render PHP Метод

render() публичный Метод

Renders a menu with the specified renderer.
public render ( Knp\Menu\ItemInterface | string | array $menu, array $options = [], string $renderer = null ) : string
$menu Knp\Menu\ItemInterface | string | array
$options array
$renderer string
Результат string
    public function render($menu, array $options = array(), $renderer = null)
    {
        return $this->helper->render($menu, $options, $renderer);
    }

Usage Example

Пример #1
0
 public function testRender()
 {
     $helperMock = $this->getHelperMock();
     $helperMock->expects($this->any())->method('render')->with($this->equalTo('test'), $this->equalTo(array('options')))->will($this->returnValue('returned value'));
     $helper = new MenuHelper($helperMock, $this->getMatcherMock(), $this->getManipulatorMock());
     $this->assertEquals('returned value', $helper->render('test', array('options')));
 }
All Usage Examples Of Knp\Bundle\MenuBundle\Templating\Helper\MenuHelper::render