public function render($key, RendererInterface $renderer = null)
	{
		if (!$this->hasMenu($key)) {
			return '';
		}

		return $this->renderMenu($this->getMenu($key), $renderer);
	}
public function render($key, RendererInterface $renderer = null)
	{
		if (!$this->hasMenu($key)) {
			return '';
		}

		return $this->renderMenu($this->getMenu($key), $renderer);
	}
public function render ( $ key , RendererInterface $ renderer = null ) { if ( ! $ this -> hasMenu ( $ key ) ) { return '' ; } return $ this -> renderMenu ( $ this -> getMenu ( $ key ) , $ renderer ) ; }
Render a menu if it exists.

@param  string $key

@return string
Render a menu if it exists .