src/Renderer/StringTemplateRenderer.php
protected function _renderLinkElement(ItemInterface $item, array $options)
    {
        return (string)$this->templater()->format('link', [
            'attrs' => $this->_formatAttributes($item->getLinkAttributes(), $item),
            'templateVars' => $options['templateVars'],
            'url' => h($item->getUri()),
            'label' => $this->_renderLabel($item)
        ]);
    }
protected function _renderLinkElement(ItemInterface $item, array $options)
    {
        return (string)$this->templater()->format('link', [
            'attrs' => $this->_formatAttributes($item->getLinkAttributes(), $item),
            'templateVars' => $options['templateVars'],
            'url' => h($item->getUri()),
            'label' => $this->_renderLabel($item)
        ]);
    }
protected function _renderLinkElement ( ItemInterface $ item , array $ options ) { return ( string ) $ this -> templater ( ) -> format ( 'link' , [ 'attrs' => $ this -> _formatAttributes ( $ item -> getLinkAttributes ( ) , $ item ) , 'templateVars' => $ options [ 'templateVars' ] , 'url' => h ( $ item -> getUri ( ) ) , 'label' => $ this -> _renderLabel ( $ item ) ] ) ; }
Renders the menu item as a link element.

## Options

- `templateVars`: The template variables to use for the link element.

@param ItemInterface $item The menu item which to render as a link element.
@param array $options The rendering options, see the "Options" section in the method
description specific link options.
@return string The rendered link element.
Renders the menu item as a link element .