public function render($data = [], $view = null)
    {
        $view = $view ? : MenuManager::PLUGIN_NAME . '::master_menu';

        return $this->manager->getView()->make($view, ['menu' => $this], $data)
            ->render();
    }
public function render($data = [], $view = null)
    {
        $view = $view ? : MenuManager::PLUGIN_NAME . '::master_menu';

        return $this->manager->getView()->make($view, ['menu' => $this], $data)
            ->render();
    }
public function render ( $ data = [ ] , $ view = null ) { $ view = $ view ? : MenuManager :: PLUGIN_NAME . '::master_menu' ; return $ this -> manager -> getView ( ) -> make ( $ view , [ 'menu' => $ this ] , $ data ) -> render ( ) ; }
Render the menu

@param array $data
@param null  $view

@return string
Render the menu